Comment use of GQL 'location' fragment in webapp 'groups' file

This commit is contained in:
Wolfgang Huß 2023-01-12 15:44:06 +01:00
parent fbf1f74098
commit 04f43cde71

View File

@ -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