felicity-lims/frontend/vite/src/graphql/instrument.queries.ts

46 lines
799 B
TypeScript
Raw Normal View History

2021-04-09 06:37:58 +08:00
import gql from 'graphql-tag';
export const GET_ALL_INSTRUMENTS = gql`
query getAllInstruments {
instrumentAll {
2021-09-27 23:45:22 +08:00
totalCount
pageInfo {
hasNextPage
hasPreviousPage
startCursor
endCursor
}
items {
uid
name
description
keyword
supplier {
2021-04-09 06:37:58 +08:00
uid
name
}
2021-09-27 23:45:22 +08:00
}
2021-04-09 06:37:58 +08:00
}
}`;
export const GET_ALL_METHODS = gql`
query getAllMethods {
2021-09-27 23:45:22 +08:00
methodAll {
totalCount
pageInfo {
hasNextPage
hasPreviousPage
startCursor
endCursor
}
items {
uid
name
description
keyword
}
2021-04-09 06:37:58 +08:00
}
}`;