How to give permissions to dependency package? #11
-
Abstract questionI have package Not abstract questionI have
|
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 1 reply
-
|
Beta Was this translation helpful? Give feedback.
-
I have created Join from There is a handler from {
"name": "ApolloError",
"stack": "ApolloError: check constraint of an insert/update permission has failed\n at new ApolloError (/node_modules/@apollo/client/errors/errors.cjs:34:28)\n at /node_modules/@apollo/client/core/core.cjs:1289:47\n at both (/node_modules/@apollo/client/utilities/utilities.cjs:997:53)\n at /node_modules/@apollo/client/utilities/utilities.cjs:990:72\n at new Promise (<anonymous>)\n at Object.then (/node_modules/@apollo/client/utilities/utilities.cjs:990:24)\n at Object.next (/node_modules/@apollo/client/utilities/utilities.cjs:998:49)\n at notifySubscription (/node_modules/zen-observable/lib/Observable.js:135:18)\n at onNotify (/node_modules/zen-observable/lib/Observable.js:179:3)\n at SubscriptionObserver.next (/node_modules/zen-observable/lib/Observable.js:235:7)",
"message": "check constraint of an insert/update permission has failed",
"clientErrors": [],
"networkError": null,
"graphQLErrors": [
{
"message": "check constraint of an insert/update permission has failed"
}
]
} |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
My problem was existing because I have mixed up from_id and to_id. Here is what I had to use: const joinTypeLinkId = await deep.id("@deep-foundation/core", "Join");
const packageLinkId = await deep.id("@freephoenix888/object-to-links-async-converter");
await deep.insert([
{
type_id: joinTypeLinkId,
from_id: packageLinkId,
to_id: await deep.id("@deep-foundation/capacitor-device"),
},
]) const joinTypeLinkId = await deep.id("@deep-foundation/core", "Join");
const packageLinkId = await deep.id("@deep-foundation/capacitor-device");
await deep.insert([
{
type_id: joinTypeLinkId,
from_id: packageLinkId,
to_id: await deep.id("@deep-foundation/deep-memo"),
},
]) const joinTypeLinkId = await deep.id("@deep-foundation/core", "Join");
const packageLinkId = await deep.id("@deep-foundation/deep-memo");
await deep.insert([
{
type_id: joinTypeLinkId,
from_id: packageLinkId,
to_id: await deep.id('deep', 'users', 'packages'),
},
{
type_id: joinTypeLinkId,
from_id: packageLinkId,
to_id: await deep.id('deep', 'admin'),
},
]) Join's |
Beta Was this translation helpful? Give feedback.
My problem was existing because I have mixed up from_id and to_id. Here is what I had to use:
const