-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
43 changed files
with
1,919 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
import { gql } from "@apollo/client"; | ||
const FRAGMENT = { | ||
"kind": "Document", | ||
"definitions": [ | ||
{ | ||
"kind": "FragmentDefinition", | ||
"name": { | ||
"kind": "Name", | ||
"value": "TestFragment" | ||
}, | ||
"directives": [], | ||
"typeCondition": { | ||
"kind": "NamedType", | ||
"name": { | ||
"kind": "Name", | ||
"value": "Entity" | ||
} | ||
}, | ||
"selectionSet": { | ||
"kind": "SelectionSet", | ||
"selections": [ | ||
{ | ||
"kind": "Field", | ||
"name": { | ||
"kind": "Name", | ||
"value": "id" | ||
}, | ||
"arguments": [], | ||
"directives": [] | ||
}, | ||
{ | ||
"kind": "Field", | ||
"name": { | ||
"kind": "Name", | ||
"value": "name" | ||
}, | ||
"arguments": [], | ||
"directives": [] | ||
} | ||
] | ||
} | ||
} | ||
], | ||
"loc": { | ||
"start": 0, | ||
"end": 57, | ||
"source": { | ||
"body": "\n fragment TestFragment on Entity {\n id\n name\n }\n" | ||
} | ||
} | ||
}; |
File renamed without changes.
File renamed without changes.
71 changes: 71 additions & 0 deletions
71
tests/graphql_tag/definations/operation/mutation/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
import { gql } from "@apollo/client"; | ||
const MUTATION = { | ||
"kind": "Document", | ||
"definitions": [ | ||
{ | ||
"kind": "OperationDefinition", | ||
"name": { | ||
"kind": "Name", | ||
"value": "testMutation" | ||
}, | ||
"directives": [], | ||
"variableDefinitions": [ | ||
{ | ||
"kind": "VariableDefinition", | ||
"directives": [], | ||
"variable": { | ||
"kind": "Variable", | ||
"name": { | ||
"kind": "Name", | ||
"value": "entity" | ||
} | ||
}, | ||
"type": { | ||
"kind": "NamedType", | ||
"name": { | ||
"kind": "Name", | ||
"value": "String" | ||
} | ||
} | ||
} | ||
], | ||
"operation": "mutation", | ||
"selectionSet": { | ||
"kind": "SelectionSet", | ||
"selections": [ | ||
{ | ||
"kind": "Field", | ||
"name": { | ||
"kind": "Name", | ||
"value": "updateEntity" | ||
}, | ||
"arguments": [ | ||
{ | ||
"kind": "Argument", | ||
"name": { | ||
"kind": "Name", | ||
"value": "entity" | ||
}, | ||
"value": { | ||
"kind": "Variable", | ||
"name": { | ||
"kind": "Name", | ||
"value": "entity" | ||
} | ||
} | ||
} | ||
], | ||
"directives": [] | ||
} | ||
] | ||
} | ||
} | ||
], | ||
"loc": { | ||
"start": 0, | ||
"end": 82, | ||
"source": { | ||
"body": "\n mutation testMutation($entity: String) {\n updateEntity(entity: $entity)\n }\n" | ||
} | ||
} | ||
}; |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
import { gql } from "@apollo/client"; | ||
const QUERY = { | ||
"kind": "Document", | ||
"definitions": [ | ||
{ | ||
"kind": "OperationDefinition", | ||
"name": { | ||
"kind": "Name", | ||
"value": "testQuery" | ||
}, | ||
"directives": [], | ||
"variableDefinitions": [], | ||
"operation": "query", | ||
"selectionSet": { | ||
"kind": "SelectionSet", | ||
"selections": [ | ||
{ | ||
"kind": "Field", | ||
"name": { | ||
"kind": "Name", | ||
"value": "getEntity" | ||
}, | ||
"arguments": [], | ||
"directives": [], | ||
"selectionSet": { | ||
"kind": "SelectionSet", | ||
"selections": [ | ||
{ | ||
"kind": "Field", | ||
"name": { | ||
"kind": "Name", | ||
"value": "id" | ||
}, | ||
"arguments": [], | ||
"directives": [] | ||
}, | ||
{ | ||
"kind": "Field", | ||
"name": { | ||
"kind": "Name", | ||
"value": "name" | ||
}, | ||
"arguments": [], | ||
"directives": [] | ||
} | ||
] | ||
} | ||
} | ||
] | ||
} | ||
} | ||
], | ||
"loc": { | ||
"start": 0, | ||
"end": 67, | ||
"source": { | ||
"body": "\n query testQuery {\n getEntity {\n id\n name\n }\n }\n" | ||
} | ||
} | ||
}; |
File renamed without changes.
File renamed without changes.
Oops, something went wrong.