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
            }
        }
    }
}

Last updated