Invalid query: Field 'type' doesn't have a default value