felicity-lims/webapp/graphql/instrument.queries.ts

116 lines
2.3 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 {
2023-04-10 09:29:10 +08:00
supplierAll {
uid
name
description
}
}
`;
2023-04-10 09:29:10 +08:00
export const GET_ALL_MANUFACTURERS = gql`
query getAllManufacturers {
2023-04-10 09:29:10 +08:00
manufacturerAll {
uid
name
description
}
}
`;
export const GET_ALL_INSTRUMENT_TYPES = gql`
2023-04-10 09:29:10 +08:00
query getAllInstrumentTypes {
instrumentTypeAll {
totalCount
pageInfo {
hasNextPage
hasPreviousPage
startCursor
endCursor
}
items {
uid
name
description
}
}
}
2023-04-10 09:29:10 +08:00
`;
2021-04-09 06:37:58 +08:00
export const GET_ALL_INSTRUMENTS = gql`
query getAllInstruments {
instrumentAll {
2023-04-10 09:29:10 +08:00
totalCount
pageInfo {
hasNextPage
hasPreviousPage
startCursor
endCursor
2021-04-09 06:37:58 +08:00
}
2023-04-10 09:29:10 +08:00
items {
uid
name
description
keyword
methods {
uid
name
description
}
supplierUid
supplier {
uid
name
}
manufacturerUid
manufacturer {
uid
name
}
instrumentTypeUid
instrumentType {
uid
name
}
}
2023-04-10 09:29:10 +08:00
}
2021-04-09 06:37:58 +08:00
}
2023-04-10 09:29:10 +08:00
`;
2021-04-09 06:37:58 +08:00
export const GET_ALL_METHODS = gql`
query getAllMethods {
2023-04-10 09:29:10 +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
}
2023-04-10 09:29:10 +08:00
}
`;
export const GET_ALL_UNITS = gql`
query getAllUnits {
unitAll {
uid
name
2023-04-10 09:29:10 +08:00
isSiUnit
2021-09-27 23:45:22 +08:00
}
}
2023-04-10 09:29:10 +08:00
`;