0
I would like to ask a question about Graphql.
I have an API that receives certain data from the user, for example: Name, email, address and etc... and in addition to this already predefined data, it is possible to save additional data, which is not defined. The following question arose:
How do I define the type of this data, because I could not find in the documentation a type "object".
For example:
type Query {
user: User
}
type User {
id: ID!,
name: String,
email: String,
extra: Object //este seria um objeto customizado
}
Does anyone know how I can solve?
Thanks for the idea!
– Marcus Rodrigues