garph icon indicating copy to clipboard operation
garph copied to clipboard

Fullstack GraphQL Framework for TypeScript

Results 27 garph issues
Sort by recently updated
recently updated
newest added

Specify resolvers directly in schema Example: ```ts g.type('Query', { test: g.string().resolve(() => 'Hello World') }) ```

```ts export const config = { runtime: 'edge' } export const schema = buildSchema({ g, resolvers }) // Next.JS + Yoga API const yoga = createYoga({ schema, graphqlEndpoint: '/api/graphql' })...

documentation

Add support for specifying and implementing GraphQL directives in Garph Example: ```ts const d = g.directive('Name', { param: g.string() }, ['FIELD', 'ARGUMENT']) g.type('Query', { test: g.string() .args({ test: g.string().addDirective(d, {...

`.use((parent, args, context, info) => {})` If used on an object, use should apply to all fields on that object

Blocked by #40 and #38

`or` helper would help create a Union with the current type and the type specified in `or` The use-case for the feature include error handling Example: ```ts const error =...

Allow supplying an array of resolvers to the schema builder