My model has ID, but it's being stripped from the query after being built. How do I force ID to be a part of the query without creating a custom query?
export default class User extends Model {
static entity = 'users'
static primaryKey = ['id']
static fields() {
return {
id: this.attr(null),
firstName: this.string(''),
}
}
My model has
ID
, but it's being stripped from the query after being built. How do I forceID
to be a part of the query without creating a custom query?produces this graphQL query...
query Users { query users { firstName } }
I expect it to product this query...
query Users { query users { id firstName } }
When running
User.fetch();
it causesID
to be set to_no_key_48466
. My schema containsID
. Here is my graphQL schema.Thanks in advance.