generated at
GraphQL Nexus

GraphQL binding
coreでGraphQL.jsを使っている




sdlから変換するconverterがある

これがCode Firstです、と言われるとだいぶイメージしやすい
ts
const Mutation = objectType({ name: "Mutation", definition(t) { t.nonNull.list.string("someList", { args: { items: nonNull(list(stringArg())), }, }) t.nonNull.field("createPost", { type: Post, args: { input: arg({ type: nonNull(CreatePostInput) }), }, }) t.nonNull.field("registerClick", { type: Query, args: { uuid: arg({ type: UUID }), }, }) } })


GraphQL.jsTypeGraphQLとNexusの比較記事
この著者的にはGraphQL.jsが良いらしい

Code-First, Type-Safe, GraphQL Schema Construction