graphql-codegen-core
Advanced tools
Comparing version 0.7.0-alpha.3dcc416e to 0.7.0-alpha.b5ecec0c
@@ -6,2 +6,3 @@ "use strict"; | ||
var debugging_1 = require("../debugging"); | ||
var printer_1 = require("graphql/language/printer"); | ||
function transformFragment(schema, fragment) { | ||
@@ -16,2 +17,3 @@ debugging_1.debugLog("[transformFragment] transforming fragment " + fragment.name.value + " on type " + fragment.typeCondition.name.value); | ||
selectionSet: build_selection_set_1.buildSelectionSet(schema, root, fragment.selectionSet), | ||
document: printer_1.print(fragment), | ||
}; | ||
@@ -18,0 +20,0 @@ } |
@@ -7,2 +7,3 @@ "use strict"; | ||
var debugging_1 = require("../debugging"); | ||
var printer_1 = require("graphql/language/printer"); | ||
function transformOperation(schema, operationNode) { | ||
@@ -22,2 +23,3 @@ var name = operationNode.name && operationNode.name.value ? operationNode.name.value : ''; | ||
isSubscription: operationNode.operation === 'subscription', | ||
document: printer_1.print(operationNode), | ||
}; | ||
@@ -24,0 +26,0 @@ } |
@@ -116,2 +116,3 @@ export interface Argument { | ||
onType: string; | ||
document: string; | ||
} | ||
@@ -127,2 +128,3 @@ export interface Operation { | ||
isSubscription: boolean; | ||
document: string; | ||
} | ||
@@ -129,0 +131,0 @@ export interface Variable { |
{ | ||
"name": "graphql-codegen-core", | ||
"version": "0.7.0-alpha.3dcc416e", | ||
"version": "0.7.0-alpha.b5ecec0c", | ||
"description": "GraphQL types and code generator based on schema", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
124613
811