Create Recommended Supplement
Use createSupplementRecommended
to add new supplements available to the users.
Required Arguments
Argument
Type
Description
biomarkerId
ID!
Biomarker Id.
supplementId
ID!
Supplement Id.
normalValues
GenericScalar!
range
BiomarkerRangeInput!
Biomarker Range Input.
range.max
Float!
Smallest defined value.
range.min
Float!
Largest defined value.
Available Fields
Field
Type
Description
success
String
Success if Recommended Supplement created succesfully.
message
String
Description of the result. Either if the recipe was added or not
supplementRecommended
SupplementRecommended
Recommended Supplement boject.
Example
mutation createSupplementRecommended {
createSupplementRecommended(input: {
biomarkerId: "QmlvbWFya2VyOjE=",
supplementId: "U3VwcGxlbWVudDo4ZmMwM2NjYy0yYmI0LTQwODktODI0Ni00NDIzNGNmOGM2YWY=",
range: {max: 150, min: 1}
}) {
success message errors { field messages }
supplementRecommended {
id valueMax valueMin normalValues createdAt updatedAt
supplement {
id name category mainImage brand servingName description
directionsOfUseText sizeCount externalId sku storeId
shopifyVariantId shopifyParentId instructions ingredients
supplementFacts images directionsOfUse { id quantity timeOfDay }
createdAt updatedAt
}
biomarker {
id name method description range { max min }
aliases { name language }
category { id name parent { id name } }
units { name factor alias }
optimalRange { max min }
borderlineRange { max min }
normalValues
}
}
}
}
{
"data": {
"createSupplementRecommended": {
"success": true,
"message": "Supplement recommended saved",
"errors": null,
"supplementRecommended": {
"id": "U3VwcGxlbWVudFJlY29tbWVuZGVkOjI=",
"valueMax": 150,
"valueMin": 1,
"normalValues": [],
"createdAt": "2023-02-09T20:51:22.630255+00:00",
"updatedAt": "2023-02-09T20:51:22.630284+00:00",
"supplement": {
"id": "U3VwcGxlbWVudDo4ZmMwM2NjYy0yYmI0LTQwODktODI0Ni00NDIzNGNmOGM2YWY=",
"name": "100% Wild Oil of Oregano",
"category": "Supplement",
"mainImage": "https://cdn.shopify.com/s/files/1/0008/6202/7829/products/file_7cd6a192-008c-4f80-8dd2-e43b9a90cc24.png?v=1614278404",
"brand": "Physician's Strength Rx",
"servingName": "2 drops",
"description": null,
"directionsOfUseText": "Hold under tounge for 30 seconds before swallow",
"sizeCount": 216,
"externalId": "",
"sku": "SUP-PHY-OREG-DRO-000-000",
"storeId": "100-wild-oil-of-oregano",
"shopifyVariantId": null,
"shopifyParentId": null,
"instructions": "",
"ingredients": "",
"supplementFacts": "",
"images": [],
"directionsOfUse": [
{
"id": "U3VwcGxlbWVudERpcmVjdGlvbjo0NA==",
"quantity": 1,
"timeOfDay": "AT_WAKING"
},
{
"id": "U3VwcGxlbWVudERpcmVjdGlvbjo0NQ==",
"quantity": 0,
"timeOfDay": "WITH_BREAKFAST"
},
{
"id": "U3VwcGxlbWVudERpcmVjdGlvbjo0Ng==",
"quantity": 0,
"timeOfDay": "WITH_LUNCH"
},
{
"id": "U3VwcGxlbWVudERpcmVjdGlvbjo0Nw==",
"quantity": 0,
"timeOfDay": "WITH_DINNER"
},
{
"id": "U3VwcGxlbWVudERpcmVjdGlvbjo0OA==",
"quantity": 1,
"timeOfDay": "AT_BEDTIME"
}
],
"createdAt": "2022-03-24T22:35:33.122593+00:00",
"updatedAt": "2022-03-24T22:35:33.122618+00:00"
},
"biomarker": {
"id": "QmlvbWFya2VyOjE=",
"name": "Diabetes Risk Index",
"method": "Method for diabetes risk index",
"description": "Diabetes...",
"range": {
"max": 100,
"min": 0
},
"aliases": [
{
"name": "DRI",
"language": "EN"
}
],
"category": {
"id": "QmlvbWFya2VyQ2F0ZWdvcnk6NDg=",
"name": "Adrenocortical hormones",
"parent": {
"id": "QmlvbWFya2VyQ2F0ZWdvcnk6NDQ=",
"name": "Hormonal studies"
}
},
"units": [
{
"name": "%",
"factor": 1,
"alias": null
}
],
"optimalRange": {
"max": 100,
"min": 0
},
"borderlineRange": {
"max": null,
"min": null
},
"normalValues": []
}
}
}
}
}
Last updated