How to use the fast-safe-stringify.stable function in fast-safe-stringify

To help you get started, we’ve selected a few fast-safe-stringify examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github codejie / fastify-apollo-step / src / apollo-graphql.js View on Github external
'use strict'

const fastStringify = require('fast-safe-stringify').stable;
const runHttpQuery = require('apollo-server-core').runHttpQuery;

function graphql(options) {
    return {
        method: ['GET', 'POST'],
        url: options.path,
        schema: {
            querystring: {
                query: {
                    type: 'string'
                }
            },
            body: {
                type: 'object',
                properties: {
                    query: {

fast-safe-stringify

Safely and quickly serialize JavaScript objects

MIT
Latest version published 3 years ago

Package Health Score

73 / 100
Full package analysis