I am facing a networking issue or possibly a bug in GraphQL(Apollo-Server-Express). I have tried various solutions but to no avail. When sending a query, everything seems perfect - values checked and request showing correct content with a 200 status code. However, upon inspecting the networking window in dev tools, an error pops up stating that it received undefined when expecting a String. Even though the value is clearly visible in the request payload. The schema appears to be correct as well. The puzzling part is that data is received inside the resolver, but only one variable (password) is populated while the other (email) remains undefined. There are no middleware causing issues with incoming requests.
Client-side query:
signIn: (email: string, password: string) => requests.post({query: `
query ($email: String!, $password: String!) {
signIn(email: $email, password: $password) {
_id
name
email
avatar
admin
rents{
_id
}
createdAt
updatedAt
}
}
`, variables: {
email: email,
password: password,
}}),