juicycleff
12/28/2017, 6:49 AMefvaldez
12/28/2017, 7:23 AMUrs
12/28/2017, 8:53 AMSam Abiassi
12/28/2017, 9:44 AMandrei_calazans
12/28/2017, 10:14 AMSam Abiassi
12/28/2017, 10:15 AMandrei_calazans
12/28/2017, 10:19 AMSam Abiassi
12/28/2017, 10:21 AMSam Abiassi
12/28/2017, 10:34 AMrein
12/28/2017, 1:38 PMnotrab
12/28/2017, 1:49 PMDninja
12/28/2017, 5:09 PMDninja
12/28/2017, 5:09 PMportenez
12/28/2017, 6:13 PMgraphql-playground
and fragments? something like:
fragment characterFields on Character {
name
}
query {
character {
...characterFields
}
}
is being marked as an error by graphql-playground
. The query actually works, it's not marked as an error in graphiqljuicycleff
12/28/2017, 6:59 PMrein
12/28/2017, 7:24 PMbobbyt
12/28/2017, 8:51 PMexport const CURRENT_USER_QUERY = gql`
query currentUserQuery {
user {
...UserFragment,
}
}
${USER_FRAGMENT}
`;
And here is the USER_FRAGMENT
portion:
const USER_FRAGMENT = gql`
fragment UserFragment on User {
id
username
friends {
id
username
chatGroups(filter: { users_some: { id: *_[CURRENT USER QUERY ID]_* }}) {
id
users {
id
username
}
}
}
}
`;
export default USER_FRAGMENT;
Since a friend
can belong to many chat groups I only want to return the chat groups that contain the current user as well as the friend (using the users_some
filter). I don’t want to have to pass a userId variable to the query since it’s authenticated.
Is this possible? Thanks in advance!noahdavis
12/28/2017, 9:08 PMryan
12/29/2017, 12:51 AMmarkmiller21
12/29/2017, 2:26 AMdunghoangvan
12/29/2017, 6:51 AMDaniel K.
12/29/2017, 9:47 AMgraphcool.yml
files? I don't see anything similar in github issues
my use case is simply to support modular architecture and while I can have separate types
file, I would also like to have permissions coupled with that filetfiwm
12/29/2017, 10:45 AMDaniel K.
12/29/2017, 11:17 AMOr
12/29/2017, 11:34 AMOr
12/29/2017, 11:37 AMmax
12/29/2017, 12:30 PMenvironment:
AWS_BUCKET: ${file(./config/config.yml):AWS_BUCKET}
jongaveli
12/29/2017, 12:52 PMkorr0101
12/29/2017, 2:59 PMimport
feature of graphcool. As far as I understand, it currently supports only creating new items (along with their relations) and it doesn't work for updating existing data (as well as updating their relations), cause it throws smth like duplicate error. So my question is: am I doing smth wrong and import
api actually supports updating existing data or it doesn't work this way? If it doesn't, are there any workarounds for this and if this is going to be added in future releases? Cause updating stuff via CRUD api works, but when it comes to updating a large amount of data it becomes a bit hard to do. Thanks in advancejan
12/29/2017, 3:06 PM