Quickstart - Integrations does not work out of the box

I followed the exact steps mentioned in Quickstart - Integrations but it was throwing some errors.

I made the following changes in the code and it worked -

Changed $itemId: [Int!] to $itemId: [ID!] in the getColumnValue function

and changed mutation change_column_value($boardId: Int!, $itemId: Int! …
to mutation change_column_value($boardId: ID!, $itemId: ID!

Is there any guide in the documentation covering the different types of variables available and which variables use which types?

Also, what is the ! after the type of variable? Does it mean that the variable can be NULL?

@ArkiTech – thanks for pointing it out! We actually had an open PR about this exact thing, which I just merged.

It should be fixed!

Sorry, in my last message I forgot to explain how variables in GQL work…

Variables are defined by you when making the API call.

It gives you a way to use the same query but change some data at runtime. In the example, make the same change_column_value mutation but update what value is it.

Since GraphQL is a type system, you need to give each variable a type. If you give a type that doesn’t match the schema, it will give you an error.

Variables can be nullable vs non-nullable. ! means the variable is non-nullable. Effectively this means the variable is required.

Let me know if that clarifies it!