Create Recommended Article

Use createArticleRecommended to create recommended articles for users.

Required Arguments

Argument
Type
Description

biomarkerId

ID!

Biomarker Id.

articleId

ID!

Article Id.

range

BiomarkerRangeInput!

Biomarker Range Input.

range.min

Float!

Smallest defined value.

range.max

Float!

argest defined value.

Available Fields

Field
Type
Description

success

String

Success if Recommended Article created succesfully.

message

String

Description of the result. Either if the recipe was added or not.

articleRecommended

ArticleRecommended

Recommended Article object.

articleRecommended.Id

Id

Id of recommended article.

articleRecommended.createdAt

DateTime

Date and Time of Recommended article creation.

articleRecommended.updatedAt

DateTime

Date and Time of Recommended article last update.

articleRecommended.article

ContentLibraryType

Article.

articleRecommended.biomarker

Biomarker

Biomarker.

Example

mutation createArticleRecommended {
    createArticleRecommended(input: {
      biomarkerId: "QmlvbWFya2VyOjE=",
      articleId: "Q29udGVudExpYnJhcnk6NzAwMThkNjYtZDMyMC00MzIyLWFlMDktYTU5N2Q5YjdkNGU1",
      range: { min: 1, max: 150 }
    }) {
        success message errors { field messages }
        articleRecommended {
            id valueMax valueMin createdAt updatedAt article { id title imageUrl 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