andreas.hard
09/22/2017, 10:49 PMisVerified: Boolean @defaultValue(value: false)
How would I go about hooking up a function (could be on AWS lambda or similar) to:
• Send out an email with a confirmation link (with TTL)
• Handle the incoming request when a user presses the link to change the bool value and allow login access
This is also applicable to a “forgot password” feature.eder
09/22/2017, 11:17 PMwontwon
09/23/2017, 12:40 AMwontwon
09/23/2017, 12:43 AMjoshjoe
09/23/2017, 1:17 AMexport default compose(
// TODO: put this user's id into the filter (somehow)
graphql(USER_QUERY),
graphql(ALL_REPORTS, {
options: props => ({
$userId: props.data.user.id
})
}),
)(ReportsHome);
This doesn’t work since the user id is being retrieved alongside the reportsjoshjoe
09/23/2017, 1:17 AMjoshjoe
09/23/2017, 1:21 AMDavid Baker
09/23/2017, 1:44 AMjoshjoe
09/23/2017, 2:00 AMjoshjoe
09/23/2017, 2:03 AMmeikoudras
09/23/2017, 3:32 AMcodegeek001
09/23/2017, 3:38 AM{
type: 'food',
params: {
definition: {
rules: [
{...},
{...}
]
},
page: 1,
page_size: 50
}
}
I know how to pass in Strings, Ints, IDs, Boolean, and all single input type variables, but I haven't found examples of how to pass in a full object or if that is even possible?
I basically want to be able to do something like this, and the object I'm passing in is the one ^
query Search($object: Object) {
search(object: $object) {
...
}
}
I have also tried creating the type structure on the backend that matches the object I need to pass in and assign it as the type for the argument, but even that doesn't seem to work. Could some one please post an example of how you would do this? A lot of tutorials don't go deep enough into this topic for me to find references.Sheel Patel
09/23/2017, 3:44 AMcodegeek001
09/23/2017, 3:49 AMconst SearchType = new GraphQLObjectType({
name: 'search',
fields: () => ({
type: { type: GraphQLString },
params: {
type: new GraphQLObjectType({
name: 'params',
fields: {
definition: {
type: new GraphQLObjectType({
name: 'definition',
fields: {
rules: {
type: new GraphQLList(
new GraphQLObjectType({
name: 'rules',
field: {
field: { type: GraphQLString },
value: { type: GraphQLString },
operator: { type: GraphQLString }
}
})
)
}
}
})
},
page: { type: GraphQLInt },
page_size: { type: GraphQLInt }
}
})
}
})
});
seanmckenna
09/23/2017, 3:58 AMSheel Patel
09/23/2017, 4:00 AMseanmckenna
09/23/2017, 4:22 AMSheel Patel
09/23/2017, 4:24 AMSheel Patel
09/23/2017, 4:24 AMGraphcool has an integrated file management system. Easily store and display your users profile pictures, attachments or any other files. Basic usage is free and for more demanding projects you are billed in increments of 50¢ / GB / month for additional storage and file transfer.
zaksingh
09/23/2017, 6:15 AMMilly
09/23/2017, 6:50 AMlifeiscontent
09/23/2017, 9:47 AMkaiu
09/23/2017, 3:12 PMmattd
09/23/2017, 3:21 PMpcooney10
09/23/2017, 4:44 PMsignor_busi
09/23/2017, 7:46 PMmerott
09/23/2017, 7:52 PMgraphcool module add graphcool/modules/syncing/algolia
, and getting Cannot read property 'endPosition' of undefined
. Any thoughts?Stephen
09/24/2017, 5:50 AMStephen
09/24/2017, 7:00 AMDaniel K.
09/24/2017, 12:42 PMgraphql
call, it would be sufficient