Merge branch 'development' of https://github.com/defuj/eis

This commit is contained in:
Dede Fuji Abdul 2024-02-16 10:14:21 +07:00
commit 43fe37fcbb
2 changed files with 26 additions and 3 deletions

10
manifest.yaml Normal file
View File

@ -0,0 +1,10 @@
version: '3.8'
services:
apkt-eis:
build:
context: .
dockerfile: Dockerfile
ports:
- "32166:80"
restart: always

View File

@ -4,7 +4,7 @@ import gql from 'graphql-tag'
import { useQuery } from '@apollo/client'
export const useQueryStore = defineStore('query', () => {
const getUser = useQuery(gql`
const getUser = useQuery(gql`
query getUsers {
users {
id
@ -15,7 +15,20 @@ export const useQueryStore = defineStore('query', () => {
}
`)
return {
getUser,
const { variables } = useQuery(gql`
query getUserById ($id: ID!) {
user (id: $id) {
id
email
}
}
`, {
variables: {
id: 'abc-abc-abc',
}
})
return {
getUser,
}
})