for example:
"""
A user device
"""
type device @model {
id: ID!
statusID: Int!
devFunctionIDs: [Int]!
functions: [devFunction] @connection(fields: ["devFunctionIDs"])
}
"""
A function or feature of a device
"""
type devFunction @model {
id: Int!
functionName: String!
}
In this situation I have an array of Int which correlate to functions. The array of Int's are compiled by user. A device can have many features/functions on it. I want to get all the associated function objects.
Please excuse my inexperience on this topic as I am very new to Graphql. The error I get tells me that I need to use a non-null scalar. (an array of scalars I guess doesn't count) The error message doesn't offer alternative solutions, or give me much to go on for searching up a proper way to do this.
Can anyone point me in the right direction?