Cannot read property 'concat' of undefined For Scalar
Closed this issue ยท 5 comments
Bug.
Scalar Type definition does not exists fields. Example: Scalar Json. Scalar Upload.
On merge if Scalar define more that once, got error. I think, error here: https://github.com/prisma/graphql-import/blob/master/src/index.ts#L118
existingType.fields.concat. existingType.fields is not defined.
I ran into this because I had scalar DateTime
twice.
same too
I have the same error but I have only one Scalar!
Hi @Fi1osof , @ShiChenCong and @aaalsubaie !
In 1.0.0 beta release, we introduced a lot of changes including that fix related to the lack of fields
in Scalar definitions.
Could you install graphql-import@beta
to try new changes? Don't forget to modify your code regarding to the migration notes in README
.
https://github.com/ardatan/graphql-import#updating-from-07x
Available in 1.0.0!