1.3.0 • Published 8 months ago

@hydre/make_schema v1.3.0

Weekly downloads
-
License
UNLICENSE
Repository
github
Last release
8 months ago
const schema = make_schema({
  document: 'type Query { ping: String! }',
  resolvers: {
    Query: {
      ping: () => 'pong',
    },
    Subscription: {
      ping: {
        resolve: () => 'pong',
        async *subscribe() {
          yield 0
        },
      },
    },
  },
  directives: {
    foo: ({
      resolve, // original resolver
      root, // resolver params in the same order
      parameters, // .
      context, // .
      info, // .
      directive_arguments, // parameters for the directive
    }) => {},
  },
})
1.2.2

8 months ago

1.3.0

8 months ago

1.2.0

1 year ago

1.1.0

1 year ago

1.2.1

1 year ago

1.0.3

2 years ago

1.0.1

2 years ago