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

104 lines
1.8 KiB
TypeScript
Raw Normal View History

2021-04-09 06:37:58 +08:00
import gql from 'graphql-tag';
export const GET_ALL_SUPPLIERS = gql`
query getAllSuppliers {
supplierAll {
uid
name
description
}
}`;
export const GET_ALL_MANUFACTURERS = gql`
query getAllManufacturers {
manufacturerAll {
uid
name
description
}
}`;
export const GET_ALL_INSTRUMENT_TYPES = gql`
query getAllInstrumentTypes {
instrumentTypeAll {
totalCount
pageInfo {
hasNextPage
hasPreviousPage
startCursor
endCursor
}
items {
uid
name
description
}
}
}`;
2021-04-09 06:37:58 +08:00
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
methods {
uid
name
description
}
supplierUid
2021-09-27 23:45:22 +08:00
supplier {
2021-04-09 06:37:58 +08:00
uid
name
}
manufacturerUid
manufacturer {
uid
name
}
instrumentTypeUid
instrumentType {
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
instruments {
uid
name
description
}
2021-09-27 23:45:22 +08:00
}
2021-04-09 06:37:58 +08:00
}
}`;