stepci / garph

Fullstack GraphQL Framework for TypeScript
https://garph.dev
MIT License
1.31k stars 17 forks source link

Need to resolve the type like pothos. #65

Closed raja-OX closed 1 year ago

raja-OX commented 1 year ago
const builder = new SchemaBuilder({});

builder.queryType({
  fields: (t) => ({
    hello: t.string({
      args: {
        name: t.arg.string(),
      },
      resolve: (parent, { name }) => `hello, ${name || 'World'}`,
    }),
  }),
});
raja-OX commented 1 year ago

This issue already mention in #42 so i close this issue.