123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275 |
- // Jest Snapshot v1, https://goo.gl/fbAQLP
- exports[`directive_decl.graphql 1`] = `
- directive @dir(
- # comment
- arg1: String
- # comment
- arg2: String
- arg3: String
- ) on QUERY
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- directive @dir(
- # comment
- arg1: String
- # comment
- arg2: String
- arg3: String
- ) on QUERY
- `;
- exports[`directives.graphql 1`] = `
- query MyQuery @directive(
- arg: 5
- # comment
- arg2: 10
- ) {
- field @skip(
- if: true
- # comment
- cursor: 10
- ) @nope
- otherField
- ...fragmentSpread, @include(if: ["this isn't even a boolean", "wow, that's really odd",,,,,])
- }
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- query MyQuery
- @directive(
- arg: 5
- # comment
- arg2: 10
- ) {
- field
- @skip(
- if: true
- # comment
- cursor: 10
- )
- @nope
- otherField
- ...fragmentSpread
- @include(if: ["this isn't even a boolean", "wow, that's really odd"])
- }
- `;
- exports[`enum.graphql 1`] = `
- enum State {
- # pending state
- PENDING
- # visible states
- VISIBLE
- INVISIBLE
- # archive state
- ARCHIVED
- }
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- enum State {
- # pending state
- PENDING
- # visible states
- VISIBLE
- INVISIBLE
- # archive state
- ARCHIVED
- }
- `;
- exports[`fields.graphql 1`] = `
- query MyFirstQuery {
- # comment
- field {
- subfield
- # comment
- subfield
- }
- field
- #comment
- field
- }
- mutation MyFirstMutation {
- # comment
- name
- comment # comment
- kind
- }
- subscription MySubscription {
- name
- comment
- kind
- }
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- query MyFirstQuery {
- # comment
- field {
- subfield
- # comment
- subfield
- }
- field
- #comment
- field
- }
- mutation MyFirstMutation {
- # comment
- name
- comment # comment
- kind
- }
- subscription MySubscription {
- name
- comment
- kind
- }
- `;
- exports[`input.graphql 1`] = `
- input Params {
- # Id
- id: ID
- # Name
- name: String
- }
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- input Params {
- # Id
- id: ID
- # Name
- name: String
- }
- `;
- exports[`interface.graphql 1`] = `
- interface Actor {
- # Id
- id: ID
- # Actor fields
- name: String
- kind: String
- }
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- interface Actor {
- # Id
- id: ID
- # Actor fields
- name: String
- kind: String
- }
- `;
- exports[`object_type_def.graphql 1`] = `
- type Artist implements Node, Entity {
- # The ID of an object
- id: ID!
- # The MBID of the entity.
- mbid: MBID!
- # A list of recordings linked to this entity.
- recordings(after: String, first: Int): RecordingConnection
- # A list of releases linked to this entity.
- releases(
- # Filter by one or more release group types.
- type: [ReleaseGroupType]
- # Filter by one or more release statuses.
- status: [ReleaseStatus]
- after: String
- first: Int
- ): ReleaseConnection
- }
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- type Artist implements Node, Entity {
- # The ID of an object
- id: ID!
- # The MBID of the entity.
- mbid: MBID!
- # A list of recordings linked to this entity.
- recordings(after: String, first: Int): RecordingConnection
- # A list of releases linked to this entity.
- releases(
- # Filter by one or more release group types.
- type: [ReleaseGroupType]
- # Filter by one or more release statuses.
- status: [ReleaseStatus]
- after: String
- first: Int
- ): ReleaseConnection
- }
- `;
- exports[`schema.graphql 1`] = `
- # Schema
- schema {
- # Query and Mutation
- query: Root
- mutation: Mutation
- # Subscription
- subscription: Subscription
- }
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- # Schema
- schema {
- # Query and Mutation
- query: Root
- mutation: Mutation
- # Subscription
- subscription: Subscription
- }
- `;
|