Closed ragelo closed 6 years ago
Hi! Will be nice to see such updates! What do you think?
Schema example
type Thing { name: String! } input ThingsFilter { nameStartFrom: String } type Query { things(count: Number!, filter: ThingsFilter): [Thing!] } input ChangeProjectTitleInput { name: !String } type Thing { thing: Thing! } type Mutation { addThing(input: AddThingInput!): AddThingPayload }
Current output:
... declare type Query = { things: ?Array<Thing>; } declare type AddThingInput = { name: string; } declare type AddThingPayload = { thing: Thing; } declare type Mutation = { addThing: ?AddThingPayload; }
Expected output:
... declare type ViewerSubjectsArgs = { count: number; filter: ?ThingsFilter; } declare type Query = { things<ViewerSubjectsArgs>(): ?Array<Thing> | Promise<?Array<Thing>>; } declare type AddThingInput = { name: string; } declare type MutationAddThingArgs = { input: AddThingInput; } declare type AddThingPayload = { thing: Thing; } declare type Mutation = { addThing<MutationAddThingArgs>(): ?AddThingPayload | Promise<?AddThingPayload>; }
This repo is not maintained, sorry
Hi! Will be nice to see such updates! What do you think?
Schema example
Current output:
Expected output: