Merge branch 'development' of https://github.com/defuj/eis
This commit is contained in:
10
manifest.yaml
Normal file
10
manifest.yaml
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
version: '3.8'
|
||||||
|
|
||||||
|
services:
|
||||||
|
apkt-eis:
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
ports:
|
||||||
|
- "32166:80"
|
||||||
|
restart: always
|
@ -4,7 +4,7 @@ import gql from 'graphql-tag'
|
|||||||
import { useQuery } from '@apollo/client'
|
import { useQuery } from '@apollo/client'
|
||||||
|
|
||||||
export const useQueryStore = defineStore('query', () => {
|
export const useQueryStore = defineStore('query', () => {
|
||||||
const getUser = useQuery(gql`
|
const getUser = useQuery(gql`
|
||||||
query getUsers {
|
query getUsers {
|
||||||
users {
|
users {
|
||||||
id
|
id
|
||||||
@ -15,7 +15,20 @@ export const useQueryStore = defineStore('query', () => {
|
|||||||
}
|
}
|
||||||
`)
|
`)
|
||||||
|
|
||||||
return {
|
const { variables } = useQuery(gql`
|
||||||
getUser,
|
query getUserById ($id: ID!) {
|
||||||
|
user (id: $id) {
|
||||||
|
id
|
||||||
|
email
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
`, {
|
||||||
|
variables: {
|
||||||
|
id: 'abc-abc-abc',
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
return {
|
||||||
|
getUser,
|
||||||
|
}
|
||||||
})
|
})
|
Reference in New Issue
Block a user