agartha
06/07/2017, 11:27 PMagartha
06/07/2017, 11:49 PMagartha
06/08/2017, 12:02 AMaurnik
06/08/2017, 12:08 AMlastmjs
06/08/2017, 12:09 AMhueezer
06/08/2017, 12:35 AMjeffdiers
06/08/2017, 12:35 AMsajmil
06/08/2017, 12:40 AMnicholastancredi
06/08/2017, 12:47 AMnicholastancredi
06/08/2017, 12:47 AMaurnik
06/08/2017, 12:53 AMlastmjs
06/08/2017, 2:56 AMlastmjs
06/08/2017, 2:58 AMlastmjs
06/08/2017, 6:57 AMlastmjs
06/08/2017, 6:57 AMlastmjs
06/08/2017, 6:57 AMlastmjs
06/08/2017, 6:57 AMsubscription {
User(filter: {
OR: [
{
mutation_in: [CREATED]
},
{
mutation_in: [UPDATED]
updatedFields_contains: "ltiJWT"
}
]
}) {
node {
id
ltiJWT
}
}
}
lastmjs
06/08/2017, 6:57 AM"Query does not pass validation. Violations:
Argument 'filter' expected type 'UserSubscriptionFilter' but got: {OR: [{boolean: true}, {boolean: false, updatedFields_contains: "ltiJWT"}]}. Reason: [in field 'OR'] [at index #1] Unknown field 'updatedFields_contains' is not defined in the input type 'UserSubscriptionFilter'. (line 9, column 7):
updatedFields_contains: "ltiJWT"
^ (line 9, column 7):
updatedFields_contains: "ltiJWT"
^ (line 2, column 16):
User(filter: {
^
(line 9, column 7):
updatedFields_contains: "ltiJWT"
^"
lastmjs
06/08/2017, 6:58 AMyolen
06/08/2017, 9:43 AM1648 http fetch GET 304 <https://registry.npmjs.org/react-relay> 61ms (from cache)
1649 silly fetchPackageMetaData error for react-relay@1.0.1-alpha.2 No matching version found for react-r
elay@1.0.1-alpha.2
1650 verbose type version
1651 verbose stack react-relay: No matching version found for react-relay@1.0.1-alpha.2
1651 verbose stack at pickManifest (/home/yolen/.nvm/versions/node/v6.10.3/lib/node_modules/npm/node_
modules/pacote/node_modules/npm-pick-manifest/index.js:61:11)
1651 verbose stack at fetchPackument.then.packument (/home/yolen/.nvm/versions/node/v6.10.3/lib/node_
modules/npm/node_modules/pacote/lib/fetchers/registry/manifest.js:51:18)
1651 verbose stack at tryCatcher (/home/yolen/.nvm/versions/node/v6.10.3/lib/node_modules/npm/node_mo
dules/bluebird/js/release/util.js:16:23)
1651 verbose stack at Promise._settlePromiseFromHandler (/home/yolen/.nvm/versions/node/v6.10.3/lib/n
ode_modules/npm/node_modules/bluebird/js/release/promise.js:512:31)
1651 verbose stack at Promise._settlePromise (/home/yolen/.nvm/versions/node/v6.10.3/lib/node_modules
/npm/node_modules/bluebird/js/release/promise.js:569:18)
1651 verbose stack at Promise._settlePromise0 (/home/yolen/.nvm/versions/node/v6.10.3/lib/node_module
s/npm/node_modules/bluebird/js/release/promise.js:614:10)
1651 verbose stack at Promise._settlePromises (/home/yolen/.nvm/versions/node/v6.10.3/lib/node_module
s/npm/node_modules/bluebird/js/release/promise.js:693:18)
1651 verbose stack at Async._drainQueue (/home/yolen/.nvm/versions/node/v6.10.3/lib/node_modules/npm/
node_modules/bluebird/js/release/async.js:133:16)
1651 verbose stack at Async._drainQueues (/home/yolen/.nvm/versions/node/v6.10.3/lib/node_modules/npm
/node_modules/bluebird/js/release/async.js:143:10)
1651 verbose stack at Immediate.Async.drainQueues (/home/yolen/.nvm/versions/node/v6.10.3/lib/node_mo
dules/npm/node_modules/bluebird/js/release/async.js:17:14)
1651 verbose stack at runCallback (timers.js:672:20)
1651 verbose stack at tryOnImmediate (timers.js:645:5)
1651 verbose stack at processImmediate [as _immediateCallback] (timers.js:617:5)
1652 verbose cwd /home/yolen/Downloads/quickstart-with-relay
1653 verbose Linux 4.8.0-53-generic
1654 verbose argv "/home/yolen/.nvm/versions/node/v6.10.3/bin/node" "/home/yolen/.nvm/versions/node/v6.10
.3/bin/npm" "install"
1655 verbose node v6.10.3
1656 verbose npm v5.0.3
1657 error code ETARGET
1658 error notarget No matching version found for react-relay@1.0.1-alpha.2
1659 error notarget In most cases you or one of your dependencies are requesting
1659 error notarget a package version that doesn't exist.
1660 verbose exit [ 1, true ]
sdubois
06/08/2017, 1:41 PMhvillain
06/08/2017, 3:08 PMmakarst
06/08/2017, 3:24 PMname: String!
postsIds: [ID!]
clientMutationId: String!
instead of this:
name: String!
postsIds: [ID!]
posts: [AuthorpostsPost!]
clientMutationId: String!
Since it’s missing posts: [AuthorpostsPost!]
I can’t do a nested create mutation. I created a new project with a same schema and it has correct fields. I also got a server error while copy-pasting and running schema: Request ID: cj3okbkysermh01309qbn0bv2 I don’t know if this is related, but what should I do in this situation? How do I update my relations so they contain posts: [AuthorpostsPost!]
in CreateInput params? Thank you!
UPD: Resolveduserzach
06/08/2017, 4:15 PMWe redirect to /login to give the user the possibility to add additional required information. If your User type has no additional required fields, **you can simply call the user query to check if there is already a user with the auth0IdToken generated by Auth0 as detailed above. If there is no such user, you can immediately run the createUser mutation instead of redirecting to /login.** If there already is such a user, you can redirect the user to / instead.
My Question: Is it recommending to call (or read) the User Query
within component did mount? Is this possible? Thanks
// in src/components/LoginAuth0.js
componentDidMount() {
this._lock.on('authenticated', (authResult) => {
window.localStorage.setItem('auth0IdToken', authResult.idToken)
this.props.router.replace(`/login`)
})
}
lastmjs
06/08/2017, 4:24 PMeliezedeck
06/08/2017, 5:51 PMnilan
06/08/2017, 5:53 PMjpinlac
06/08/2017, 7:28 PMnpm start
.nikolasburk
fourcolors
06/08/2017, 8:45 PM