chore: make share data model a package
Merge request reports
Activity
@audrey, @diversemix, @andrei.cioromila Can you check that you can use this package's
schema.graphql
contents (https://gitlab.coko.foundation/xpub/shared-data-model/blob/master/schema.graphql) in your own systems, as a replacement for the current copy-and-pasted schema.graphql files?If so, I'll release the 1.0.0 and then get 2.0.0 with Audrey's MR.
Hi @jure , I'm getting errors such as:
GraphQLError: Syntax Error: Expected Name, found }
Type "Team" was defined more than once.
Type "User" was defined more than once.
As many of them has been already defined in pubsweet-server, e.g.,
node_modules/pubsweet-server/src/graphql/definitions/team.js
We are currently using
"pubsweet-server": "^10.1.1"
. Should we try a different version of pubsweet-server?Hi Yuci! One of those is a syntax error which I'll try to fix. As for the other, I'd definitely recommend upgrading to the latest, version 13, as this version is the one we'll try to keep at for a longer time (i.e. no breaking changes).
You're getting errors because version 10 still has built-in models. Version 11 moved models out of the pubsweet-server into standalone packages.
However, I'd recommend migrating after your launch and without a time pressure. :)