Skip to main content

GraphQL fails: Getting Variable of required type "String!" was not provided

  • October 25, 2024
  • 2 replies
  • 40 views

I have a Python class that worked well until 24/10/2024:

query = '''query IntrospectionQuery($typeName: String!) {
          __type(name: $typeName) {
            name
            fields {
              name
              description
              type {
                name
                kind
                ofType {
                    kind
                    name
                    ofType {
                        kind
                        name
                    }
                }
              }
            }
          }
        }'''

variables = {'typeName': type_name}

Since yesterday, I get “introspection error : Variable “$typeName” of required type “String!” was not provided”.
Writing the type-name hardcoded into the query works. Other api calls with variables (like list-items that gets board-ids) works.
Thank you

2 replies

rachelatmonday
Forum|alt.badge.img
  • monday.com Team Member
  • October 25, 2024

Welcome to the community @reformy -

Just a head’s up - I moved your post to the monday apps & developers section of the community since it is API-related.

Best,
Rachel


  • Participating Frequently
  • October 27, 2024

I am not positive introspection queries are fully implemented in the current version.

That said you can retrieve the schema with Two new schema query parameters (the name isn’t clear but this covers both the schema, as well as parameters to get the schema).