scaphold-io / scaphold-issues

Post issues that you find on Scaphold here. Post anything about the platform, docs, boilerplates, etc... Happy Scapholding!
3 stars 0 forks source link

Unknown column in field list #32

Open Adam-Burke opened 7 years ago

Adam-Burke commented 7 years ago

I seem to be getting an error similar to the following error for a lot of different fields when I try to create new objects. I added the type field in recently and since then I cannot create objects. I have had a similar problem creating fields with json type.

Error Example [ { message: 'ER_BAD_FIELD_ERROR: Unknown column \'type\' in \'field list\'', locations: [Array], path: [Array], name: 'SequelizeDatabaseError' } ]

When I query the field list relating to the Type I get the following which seems to indicate 'type' is in fact in the fields list as far as I understand anyway.

query { __type(name: "Token"){ fields{ name } } }

result { "data": { "__type": { "fields": [ { "name": "type" }, { "name": "value" }, { "name": "expiry" }, { "name": "id" }, { "name": "modifiedAt" }, { "name": "createdAt" }, { "name": "user" } ] } } }

Any help would be much appreciated.

Cheers,

Adam