mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
Comment use of GQL 'location' fragment in webapp 'groups' file
This commit is contained in:
parent
fbf1f74098
commit
04f43cde71
@ -1,4 +1,5 @@
|
|||||||
import gql from 'graphql-tag'
|
import gql from 'graphql-tag'
|
||||||
|
// Wolle: import { locationFragment } from './Fragments'
|
||||||
|
|
||||||
// ------ mutations
|
// ------ mutations
|
||||||
|
|
||||||
@ -146,7 +147,9 @@ export const changeGroupMemberRoleMutation = () => {
|
|||||||
|
|
||||||
export const groupQuery = (i18n) => {
|
export const groupQuery = (i18n) => {
|
||||||
const lang = i18n ? i18n.locale().toUpperCase() : 'EN'
|
const lang = i18n ? i18n.locale().toUpperCase() : 'EN'
|
||||||
|
// ${locationFragment(lang)}
|
||||||
return gql`
|
return gql`
|
||||||
|
|
||||||
query ($isMember: Boolean, $id: ID, $slug: String, $first: Int, $offset: Int) {
|
query ($isMember: Boolean, $id: ID, $slug: String, $first: Int, $offset: Int) {
|
||||||
Group(isMember: $isMember, id: $id, slug: $slug, first: $first, offset: $offset) {
|
Group(isMember: $isMember, id: $id, slug: $slug, first: $first, offset: $offset) {
|
||||||
id
|
id
|
||||||
@ -171,6 +174,7 @@ export const groupQuery = (i18n) => {
|
|||||||
url
|
url
|
||||||
}
|
}
|
||||||
locationName
|
locationName
|
||||||
|
# ...location
|
||||||
location {
|
location {
|
||||||
name: name${lang}
|
name: name${lang}
|
||||||
lng
|
lng
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user