mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +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'
|
||||
// Wolle: import { locationFragment } from './Fragments'
|
||||
|
||||
// ------ mutations
|
||||
|
||||
@ -146,7 +147,9 @@ export const changeGroupMemberRoleMutation = () => {
|
||||
|
||||
export const groupQuery = (i18n) => {
|
||||
const lang = i18n ? i18n.locale().toUpperCase() : 'EN'
|
||||
// ${locationFragment(lang)}
|
||||
return gql`
|
||||
|
||||
query ($isMember: Boolean, $id: ID, $slug: String, $first: Int, $offset: Int) {
|
||||
Group(isMember: $isMember, id: $id, slug: $slug, first: $first, offset: $offset) {
|
||||
id
|
||||
@ -171,6 +174,7 @@ export const groupQuery = (i18n) => {
|
||||
url
|
||||
}
|
||||
locationName
|
||||
# ...location
|
||||
location {
|
||||
name: name${lang}
|
||||
lng
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user