Are people successfully using the input type in create and update mutations?
p
peter
06/22/2018, 5:33 PM
i actually had to remove the input types because I couldn't get them working
c
cjjenkinson
06/23/2018, 4:42 PM
Same, I haven't been able to use inputs from the generated schema either! @nilan are we able to use input types defined in our own schema?
n
nilan
06/23/2018, 4:46 PM
Sure, this should work. Can you share an example of what you tried and what is happening?
c
cjjenkinson
06/23/2018, 5:09 PM
In my schema.graphql for a mutation I've added the arg input and referenced an input type called createCollectionInput with the properties it expects but in the playground I'm not able to run the query - I might be defining the variables wrong in the query variables section?
cjjenkinson
06/25/2018, 8:03 PM
Fixed this by using 'data' as the args in 'schema.graphql' for anyone searching for it - create a normal Input type such as Input createProductInput with the properties you want to pass and in the mutation reference it like createProduct(data: createProductInput!): Product