How can I insert list of Integers to Hasura Postgresql?
I'm not sure what should be column_type - when I set type as "Integer[]" - that type in Hasura was automatically changed to int4[] - it might be okey, but I don't know what type I should declare in my mutation.
gqlInsert = """
mutation InsertMutation(
\$is_enabled: Boolean,
\$weekdays: [Int], <-- what type should be in this place?
\$name: String
) {
insert_reminder_one(object: {
is_enabled: \$is_enabled
weekdays: \$weekdays
name: \$name
}) {
id
}
}
""";
If I have type as [Int] I have error like that:
GraphQLError(message: variable repeated_weekdays of type [Int] is used in position expecting _int4