I've been using the same file for the last few months to build on my personal project and suddenly the graphql types stopped being recognised and so nothing has been able to function. My other microservices work fine but this one and I've tried creating a whole new repo and redownloading everything and the same problem is occuring. The logs are below:
rest-cube-api-1 | 2023/09/12 14:59:28 query: query GetAllTopicsAndSubjects($access: String!) {
rest-cube-api-1 | getAllTopicsAndSubjects(access: $access) {
rest-cube-api-1 | topic
rest-cube-api-1 | subjectAreas
rest-cube-api-1 | access
rest-cube-api-1 | __typename
rest-cube-api-1 | }
rest-cube-api-1 | }
rest-cube-api-1 | 2023/09/12 14:59:28
rest-cube-api-1 | 2023/09/12 14:59:28 variables: map[access:public]
rest-cube-api-1 | 2023/09/12 14:59:28 ERROR
rest-cube-api-1 | 2023/09/12 14:59:28
rest-cube-api-1 | 2023/09/12 14:59:28 GraphQL has been unable to contact the database or has resulted in an error: [Variable "$access" cannot be non-input type "String!". Unknown type "String". Variable "$access" of type "" used in position expecting type "String".]
rest-cube-api-1 | 2023/09/12 14:59:28 "POST http://localhost:7080/cube HTTP/1.1" from 172.24.0.1:57668 - 401 0B in 698.317µs
I've been using the same file for the last few months to build on my personal project and suddenly the graphql types stopped being recognised and so nothing has been able to function. My other microservices work fine but this one and I've tried creating a whole new repo and redownloading everything and the same problem is occuring. The logs are below:
rest-cube-api-1 | 2023/09/12 14:59:28 query: query GetAllTopicsAndSubjects($access: String!) { rest-cube-api-1 | getAllTopicsAndSubjects(access: $access) { rest-cube-api-1 | topic rest-cube-api-1 | subjectAreas rest-cube-api-1 | access rest-cube-api-1 | __typename rest-cube-api-1 | } rest-cube-api-1 | } rest-cube-api-1 | 2023/09/12 14:59:28 rest-cube-api-1 | 2023/09/12 14:59:28 variables: map[access:public] rest-cube-api-1 | 2023/09/12 14:59:28 ERROR rest-cube-api-1 | 2023/09/12 14:59:28
rest-cube-api-1 | 2023/09/12 14:59:28 GraphQL has been unable to contact the database or has resulted in an error: [Variable "$access" cannot be non-input type "String!". Unknown type "String". Variable "$access" of type "" used in position expecting type "String".]
rest-cube-api-1 | 2023/09/12 14:59:28 "POST http://localhost:7080/cube HTTP/1.1" from 172.24.0.1:57668 - 401 0B in 698.317µs