Skip to content
This repository has been archived by the owner on Dec 22, 2022. It is now read-only.

Creating input types #6

Open
LennyPenny opened this issue Dec 20, 2017 · 1 comment
Open

Creating input types #6

LennyPenny opened this issue Dec 20, 2017 · 1 comment

Comments

@LennyPenny
Copy link

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 😢
Error: Mutation.customizeAccount(input:) argument type must be Input Type but got: AccountCustomizationInput!.

@Horaddrim
Copy link

Horaddrim commented Jun 6, 2018

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants