__schema query Not returning back correct data


Our web application performs a __schema query for which we dynamically build models in our code. We noticed when we added a new field to a class that Realm Studio shows that field exists, the mobile clients we have see that field exists, but our web application’s __schema query doesn’t have that field in its response.

loadSchemaData: function(callback) {
    var self = this;
    var schemaQuery = 'query { __schema { types { name fields { name } } } }';
        query: gql`${schemaQuery}`,
        fetchPolicy: 'no-cache'
    }).then(response => {
        self.schemaData = response.data.__schema; 
        if(callback != null) {
    }).catch(error => {

In our response back, for one of our classes, it’s missing 4 additional fields we’ve recently added to the class. Any thoughts on this?


Can you try to invalidate the schema cache? It’s the delete call mentioned at the bottom of the Mutation section in the docs.