├── .eslintrc.js ├── .gitignore ├── .travis.yml ├── .vscode ├── launch.json └── settings.json ├── CHANGELOG.md ├── LICENSE ├── README.md ├── base-tsconfig.json ├── jest.config.js ├── package.json ├── performance-test ├── performance-test.ts └── test-with-big-amount-of-data.ts ├── src ├── denormalize.ts ├── functions.ts ├── index.ts ├── norm-map.ts ├── normalize.ts ├── normalized-object.ts ├── tsconfig.json └── types.ts ├── test ├── denormalize-test-data.ts ├── denormalize-test-def.ts ├── denormalize-tests │ ├── with-complete.ts │ ├── with-incomplete.ts │ ├── with-multiple-subtree-same-query-node.ts │ └── with-scalar-incomplete.ts ├── denormalize.test.ts ├── merge.test.ts ├── normalize.test.ts ├── shared-data │ ├── standard-norm-map.ts │ └── standard-response.ts ├── shared-test-data.ts ├── shared-test-def.ts ├── shared-tests │ ├── query-with-array-of-string.ts │ ├── same-entity-twice-different-fields.ts │ ├── simple.ts │ ├── with-alias.ts │ ├── with-array-of-string.ts │ ├── with-deep-null-values.ts │ ├── with-include-literal-false.ts │ ├── with-include-literal-true.ts │ ├── with-include-variable-false.ts │ ├── with-include-variable-true.ts │ ├── with-inline-fragments.ts │ ├── with-missing-id.ts │ ├── with-named-fragments.ts │ ├── with-nested-array-of-entities.ts │ ├── with-nested-array-of-strings.ts │ ├── with-null-object.ts │ ├── with-null-values.ts │ ├── with-object-and-null-in-array.ts │ ├── with-reserved-words.ts │ ├── with-skip-literal-false.ts │ ├── with-skip-literal-true.ts │ ├── with-skip-variable-false.ts │ ├── with-skip-variable-true.ts │ ├── with-union-type-fragment-spread.ts │ ├── with-union-type-inline-fragments.ts │ ├── with-value-object-array.ts │ ├── with-value-object-nested-parents.ts │ ├── with-value-object-nested.ts │ ├── with-value-object-no-parents.ts │ ├── with-value-object-parent-with-variables.ts │ ├── with-value-object.ts │ ├── with-variables-simple-boolean-external-2.ts │ ├── with-variables-simple-boolean-external.ts │ ├── with-variables-simple-boolean.ts │ ├── with-variables-simple-int.ts │ ├── with-variables-simple-list.ts │ ├── with-variables-simple-nested-object.ts │ └── with-variables-simple-object.ts ├── test-data-utils.ts └── tsconfig.json └── yarn.lock /.eslintrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dividab/graphql-norm/HEAD/.eslintrc.js -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dividab/graphql-norm/HEAD/.gitignore -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dividab/graphql-norm/HEAD/.travis.yml -------------------------------------------------------------------------------- /.vscode/launch.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dividab/graphql-norm/HEAD/.vscode/launch.json -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dividab/graphql-norm/HEAD/.vscode/settings.json -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dividab/graphql-norm/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dividab/graphql-norm/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dividab/graphql-norm/HEAD/README.md -------------------------------------------------------------------------------- /base-tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dividab/graphql-norm/HEAD/base-tsconfig.json -------------------------------------------------------------------------------- /jest.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dividab/graphql-norm/HEAD/jest.config.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dividab/graphql-norm/HEAD/package.json -------------------------------------------------------------------------------- /performance-test/performance-test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dividab/graphql-norm/HEAD/performance-test/performance-test.ts -------------------------------------------------------------------------------- /performance-test/test-with-big-amount-of-data.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dividab/graphql-norm/HEAD/performance-test/test-with-big-amount-of-data.ts -------------------------------------------------------------------------------- /src/denormalize.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dividab/graphql-norm/HEAD/src/denormalize.ts -------------------------------------------------------------------------------- /src/functions.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dividab/graphql-norm/HEAD/src/functions.ts -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dividab/graphql-norm/HEAD/src/index.ts -------------------------------------------------------------------------------- /src/norm-map.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dividab/graphql-norm/HEAD/src/norm-map.ts -------------------------------------------------------------------------------- /src/normalize.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dividab/graphql-norm/HEAD/src/normalize.ts -------------------------------------------------------------------------------- /src/normalized-object.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dividab/graphql-norm/HEAD/src/normalized-object.ts -------------------------------------------------------------------------------- /src/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dividab/graphql-norm/HEAD/src/tsconfig.json -------------------------------------------------------------------------------- /src/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dividab/graphql-norm/HEAD/src/types.ts -------------------------------------------------------------------------------- /test/denormalize-test-data.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dividab/graphql-norm/HEAD/test/denormalize-test-data.ts -------------------------------------------------------------------------------- /test/denormalize-test-def.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dividab/graphql-norm/HEAD/test/denormalize-test-def.ts -------------------------------------------------------------------------------- /test/denormalize-tests/with-complete.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dividab/graphql-norm/HEAD/test/denormalize-tests/with-complete.ts -------------------------------------------------------------------------------- /test/denormalize-tests/with-incomplete.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dividab/graphql-norm/HEAD/test/denormalize-tests/with-incomplete.ts -------------------------------------------------------------------------------- /test/denormalize-tests/with-multiple-subtree-same-query-node.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dividab/graphql-norm/HEAD/test/denormalize-tests/with-multiple-subtree-same-query-node.ts -------------------------------------------------------------------------------- /test/denormalize-tests/with-scalar-incomplete.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dividab/graphql-norm/HEAD/test/denormalize-tests/with-scalar-incomplete.ts -------------------------------------------------------------------------------- /test/denormalize.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dividab/graphql-norm/HEAD/test/denormalize.test.ts -------------------------------------------------------------------------------- /test/merge.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dividab/graphql-norm/HEAD/test/merge.test.ts -------------------------------------------------------------------------------- /test/normalize.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dividab/graphql-norm/HEAD/test/normalize.test.ts -------------------------------------------------------------------------------- /test/shared-data/standard-norm-map.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dividab/graphql-norm/HEAD/test/shared-data/standard-norm-map.ts -------------------------------------------------------------------------------- /test/shared-data/standard-response.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dividab/graphql-norm/HEAD/test/shared-data/standard-response.ts -------------------------------------------------------------------------------- /test/shared-test-data.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dividab/graphql-norm/HEAD/test/shared-test-data.ts -------------------------------------------------------------------------------- /test/shared-test-def.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dividab/graphql-norm/HEAD/test/shared-test-def.ts -------------------------------------------------------------------------------- /test/shared-tests/query-with-array-of-string.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dividab/graphql-norm/HEAD/test/shared-tests/query-with-array-of-string.ts -------------------------------------------------------------------------------- /test/shared-tests/same-entity-twice-different-fields.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dividab/graphql-norm/HEAD/test/shared-tests/same-entity-twice-different-fields.ts -------------------------------------------------------------------------------- /test/shared-tests/simple.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dividab/graphql-norm/HEAD/test/shared-tests/simple.ts -------------------------------------------------------------------------------- /test/shared-tests/with-alias.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dividab/graphql-norm/HEAD/test/shared-tests/with-alias.ts -------------------------------------------------------------------------------- /test/shared-tests/with-array-of-string.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dividab/graphql-norm/HEAD/test/shared-tests/with-array-of-string.ts -------------------------------------------------------------------------------- /test/shared-tests/with-deep-null-values.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dividab/graphql-norm/HEAD/test/shared-tests/with-deep-null-values.ts -------------------------------------------------------------------------------- /test/shared-tests/with-include-literal-false.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dividab/graphql-norm/HEAD/test/shared-tests/with-include-literal-false.ts -------------------------------------------------------------------------------- /test/shared-tests/with-include-literal-true.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dividab/graphql-norm/HEAD/test/shared-tests/with-include-literal-true.ts -------------------------------------------------------------------------------- /test/shared-tests/with-include-variable-false.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dividab/graphql-norm/HEAD/test/shared-tests/with-include-variable-false.ts -------------------------------------------------------------------------------- /test/shared-tests/with-include-variable-true.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dividab/graphql-norm/HEAD/test/shared-tests/with-include-variable-true.ts -------------------------------------------------------------------------------- /test/shared-tests/with-inline-fragments.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dividab/graphql-norm/HEAD/test/shared-tests/with-inline-fragments.ts -------------------------------------------------------------------------------- /test/shared-tests/with-missing-id.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dividab/graphql-norm/HEAD/test/shared-tests/with-missing-id.ts -------------------------------------------------------------------------------- /test/shared-tests/with-named-fragments.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dividab/graphql-norm/HEAD/test/shared-tests/with-named-fragments.ts -------------------------------------------------------------------------------- /test/shared-tests/with-nested-array-of-entities.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dividab/graphql-norm/HEAD/test/shared-tests/with-nested-array-of-entities.ts -------------------------------------------------------------------------------- /test/shared-tests/with-nested-array-of-strings.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dividab/graphql-norm/HEAD/test/shared-tests/with-nested-array-of-strings.ts -------------------------------------------------------------------------------- /test/shared-tests/with-null-object.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dividab/graphql-norm/HEAD/test/shared-tests/with-null-object.ts -------------------------------------------------------------------------------- /test/shared-tests/with-null-values.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dividab/graphql-norm/HEAD/test/shared-tests/with-null-values.ts -------------------------------------------------------------------------------- /test/shared-tests/with-object-and-null-in-array.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dividab/graphql-norm/HEAD/test/shared-tests/with-object-and-null-in-array.ts -------------------------------------------------------------------------------- /test/shared-tests/with-reserved-words.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dividab/graphql-norm/HEAD/test/shared-tests/with-reserved-words.ts -------------------------------------------------------------------------------- /test/shared-tests/with-skip-literal-false.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dividab/graphql-norm/HEAD/test/shared-tests/with-skip-literal-false.ts -------------------------------------------------------------------------------- /test/shared-tests/with-skip-literal-true.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dividab/graphql-norm/HEAD/test/shared-tests/with-skip-literal-true.ts -------------------------------------------------------------------------------- /test/shared-tests/with-skip-variable-false.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dividab/graphql-norm/HEAD/test/shared-tests/with-skip-variable-false.ts -------------------------------------------------------------------------------- /test/shared-tests/with-skip-variable-true.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dividab/graphql-norm/HEAD/test/shared-tests/with-skip-variable-true.ts -------------------------------------------------------------------------------- /test/shared-tests/with-union-type-fragment-spread.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dividab/graphql-norm/HEAD/test/shared-tests/with-union-type-fragment-spread.ts -------------------------------------------------------------------------------- /test/shared-tests/with-union-type-inline-fragments.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dividab/graphql-norm/HEAD/test/shared-tests/with-union-type-inline-fragments.ts -------------------------------------------------------------------------------- /test/shared-tests/with-value-object-array.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dividab/graphql-norm/HEAD/test/shared-tests/with-value-object-array.ts -------------------------------------------------------------------------------- /test/shared-tests/with-value-object-nested-parents.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dividab/graphql-norm/HEAD/test/shared-tests/with-value-object-nested-parents.ts -------------------------------------------------------------------------------- /test/shared-tests/with-value-object-nested.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dividab/graphql-norm/HEAD/test/shared-tests/with-value-object-nested.ts -------------------------------------------------------------------------------- /test/shared-tests/with-value-object-no-parents.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dividab/graphql-norm/HEAD/test/shared-tests/with-value-object-no-parents.ts -------------------------------------------------------------------------------- /test/shared-tests/with-value-object-parent-with-variables.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dividab/graphql-norm/HEAD/test/shared-tests/with-value-object-parent-with-variables.ts -------------------------------------------------------------------------------- /test/shared-tests/with-value-object.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dividab/graphql-norm/HEAD/test/shared-tests/with-value-object.ts -------------------------------------------------------------------------------- /test/shared-tests/with-variables-simple-boolean-external-2.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dividab/graphql-norm/HEAD/test/shared-tests/with-variables-simple-boolean-external-2.ts -------------------------------------------------------------------------------- /test/shared-tests/with-variables-simple-boolean-external.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dividab/graphql-norm/HEAD/test/shared-tests/with-variables-simple-boolean-external.ts -------------------------------------------------------------------------------- /test/shared-tests/with-variables-simple-boolean.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dividab/graphql-norm/HEAD/test/shared-tests/with-variables-simple-boolean.ts -------------------------------------------------------------------------------- /test/shared-tests/with-variables-simple-int.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dividab/graphql-norm/HEAD/test/shared-tests/with-variables-simple-int.ts -------------------------------------------------------------------------------- /test/shared-tests/with-variables-simple-list.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dividab/graphql-norm/HEAD/test/shared-tests/with-variables-simple-list.ts -------------------------------------------------------------------------------- /test/shared-tests/with-variables-simple-nested-object.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dividab/graphql-norm/HEAD/test/shared-tests/with-variables-simple-nested-object.ts -------------------------------------------------------------------------------- /test/shared-tests/with-variables-simple-object.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dividab/graphql-norm/HEAD/test/shared-tests/with-variables-simple-object.ts -------------------------------------------------------------------------------- /test/test-data-utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dividab/graphql-norm/HEAD/test/test-data-utils.ts -------------------------------------------------------------------------------- /test/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dividab/graphql-norm/HEAD/test/tsconfig.json -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dividab/graphql-norm/HEAD/yarn.lock --------------------------------------------------------------------------------