vampiire
07/06/2018, 5:07 AMvampiire
07/06/2018, 5:07 AMvampiire
07/06/2018, 5:09 AMvampiire
07/06/2018, 5:10 AMuser
07/06/2018, 5:19 AMvampiire
07/06/2018, 5:19 AMvampiire
07/06/2018, 5:26 AMvampiire
07/06/2018, 5:27 AMvampiire
07/06/2018, 5:31 AMJenkins
07/06/2018, 5:31 AMvampiire
07/06/2018, 5:32 AMGorodov Maksim
07/06/2018, 6:49 AMAction
then connect members
to this Action
.
And I have a subscription for creating Action
on frontend. When Action
is created I receive it on frontend but without members
because it didn't have time to be connected. Any ideas how can I fix it?
Mutation - https://gist.github.com/SilencerWeb/004c51fa4156059c121a5d722f0bd5ebemurithi
07/06/2018, 7:54 AMcodepunkt
07/06/2018, 9:42 AMmutation seed {
createUser(data: { username: "Foo" }) { id }
createUser(data: { username: "Bar" }) { id }
}
There is no createMany. I could split it into multiple mutations, but then i can run only one of them by name. How do i do this?
Edit:
Okay, 2 more minutes of searching would have sufficed. Found it in one of the examples:
mutation seed {
user1: createUser(data: { username: "Foo" }) { id }
user2: createUser(data: { username: "Bar" }) { id }
}
codepunkt
07/06/2018, 10:20 AMcodepunkt
07/06/2018, 10:23 AMSamuel Resua
07/06/2018, 10:35 AMsd
07/06/2018, 12:42 PMGarrett Thompson
07/06/2018, 3:41 PMstephen
07/06/2018, 4:14 PMtype TaxonomyValue {
id: ID! @unique
identifier: String! @unique
profiles: [Profile!]! @relation(name: "ProfileTaxonomyValues")
}
type Profile {
id: ID! @unique
name: String
taxonomyValues: [TaxonomyValue!]! @relation(name: "ProfileTaxonomyValues")
}
I'm trying to retrieve records which match on multiple taxonomyValues
as below:
query {
profilesConnection(
where: { taxonomyValues_every: { identifier_in: ["value-a", "value-b"] } }
) {
aggregate {
count
}
edges {
node {
name
taxonomyValues {
identifier
}
}
}
}
}
It's only returning me records which have both taxonomyValues
(only value-a
and value-b
), not records which have value-a
and value-b
, as well as other ones. I basically want to match profiles on all requested taxonomyValue
, even if they have other values.
Any ideas?aroman
07/06/2018, 5:13 PMmturquetil
07/06/2018, 9:33 PMBen
07/07/2018, 2:07 PMBen
07/07/2018, 2:07 PMBen
07/07/2018, 2:17 PMBen
07/07/2018, 2:17 PMBen
07/07/2018, 2:17 PMBen
07/07/2018, 2:18 PMBen
07/07/2018, 2:19 PMBen
07/07/2018, 2:19 PM