the_bluescreen
08/02/2017, 3:24 PMmartin
08/02/2017, 3:37 PMexport default graphql(getAllNotifications, {
options: (props) => ({
variables: {
notificationsFilter: { source: { id: __THIS_CHANGES_INSIDE_COMPONENT__ } }
}
})
})(MyComponent)
john_doe
08/02/2017, 3:38 PMpeterp
08/02/2017, 3:45 PMquery {
user {
contacts(filter: { isActive: true }) {
id
reminders {
id
type
}
}
}
}
peterp
08/02/2017, 3:45 PMnathhorrigan
08/02/2017, 3:58 PMsamjbmason
08/02/2017, 5:10 PMpcooney10
08/02/2017, 5:12 PMspences10
08/02/2017, 6:09 PM.graphql
schema to graphcool via the cli?tornros
08/02/2017, 6:58 PMleandros
08/02/2017, 7:03 PMstton
08/02/2017, 8:00 PMstton
08/02/2017, 8:02 PMstton
08/02/2017, 8:03 PMsamjmckenzie
08/02/2017, 10:46 PMsamjmckenzie
08/02/2017, 10:48 PMallpwrfulroot
08/02/2017, 11:01 PMallpwrfulroot
08/02/2017, 11:02 PMsubscription {
User(filter: {
mutation_in: [CREATED]
}) {
node {
id
email
}
}
}
and inline code currently at
module.exports = (event) => {
const { id, email } = event.data.User.node
console.log('A THING!! ', email)
}
allpwrfulroot
08/02/2017, 11:05 PMjhardman
08/03/2017, 4:50 AMseanmckenna
08/03/2017, 5:02 AMseanmckenna
08/03/2017, 5:02 AMPieter
08/03/2017, 8:51 AMgaddarcarlo
08/03/2017, 9:52 AMgaddarcarlo
08/03/2017, 9:52 AMPieter
08/03/2017, 10:32 AMernoaapa
08/03/2017, 11:58 AMOsDefinition
and I have owner
relation to the User
. Now I try to make it so that allOsDefinitions
returns only the OsDefinitions what current user owns. Is there way to filter what the allOsDefinitions
returns?
I thought this permission query in OsDefinition would work, but it doesn't, just gives error:
query ($node_id: ID!, $user_id: ID!) {
SomeOsDefinitionExists(
filter: {
id: $node_id,
owner:{id:$user_id}
}
)
}
matty
08/03/2017, 12:15 PMrpeterson
08/03/2017, 12:25 PManton-b
08/03/2017, 12:35 PM