depop / archived-graphql-helpers

Other
61 stars 5 forks source link

Creating input types #6

Open LennyPenny opened 6 years ago

LennyPenny commented 6 years ago

I wanted to create a custom input type but for some reason I still get errors that the type isnt an input type

registry.createType(`
    input AccountCustomizationInput {
        account_id: String!
        customName: String
        customCategory: String
    }
`);
registry.createMutations(`
    type Mutations {
        customizeAccount(input: AccountCustomizationInput!): String
    }
`);

I get this error :cry: Error: Mutation.customizeAccount(input:) argument type must be Input Type but got: AccountCustomizationInput!.

Horaddrim commented 6 years ago

I had the same problem, maybe a support issue? But I don't know if they still actively maintain this repo :cry: