You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have the following mutation which works just fine
authenticate(email: $email, password: $password) {
jwt
jwtExpiresAt
refreshToken
refreshTokenExpiresAt
user {
... on User {
uid
email
firstName
siteId
}
}
}
}
However, I would like to pull as well 2 custom columns that are in custom tables:
authenticate(email: $email, password: $password) {
jwt
jwtExpiresAt
refreshToken
refreshTokenExpiresAt
user {
... on User {
uid
email
firstName
siteId
details {
... on UserDetails {
inscriptionLastStep
inscriptionVersion
}
}
}
}
}
but I get this error
{
"errors": [
{
"message": "Cannot query field \"details\" on type \"User\". Did you mean \"email\"?",
"extensions": {
"category": "graphql"
},
"locations": [
{
"line": 13,
"column": 9
}
]
}
]
}
I don't see any way where I can extend the "User" type but in my app I do have a CustomUser for arguments, interfaces, mutations, queries and resolvers.
Hi,
I have the following mutation which works just fine
However, I would like to pull as well 2 custom columns that are in custom tables:
but I get this error
I don't see any way where I can extend the "User" type but in my app I do have a CustomUser for arguments, interfaces, mutations, queries and resolvers.
Exemple
The text was updated successfully, but these errors were encountered: