Create a Supplement Plan for Member
Use the createSupplementPlan
mutation to create and assign a supplement plan to a member.
Required Arguments
Argument | Type | Description |
| ID! | Id of user. |
| String! | Name of supplement plan. |
| Date! | Supplement plan starting date. |
| String | Overview description of supplement plan. |
| String | Text area to describe nutrition related to supplement plan. |
| String | Text area to describe exercise related to supplement plan. |
| String | Text area to describe resources related to supplement plan. |
| Boolean | True will make the plan visible to the user, otherwise False |
| Boolean | True will make the plan active, otherwise False. |
| [SingleSupplement] | Array of supplements. |
| ID! | Id of supplement. |
| [DirectionsOfUseInput!] | |
| Float! | Quantity of the supplement selected. |
| TimeOfDay! | Time of day the member will take the supplement. Enum: AT_WAKING, WITH_BREAKFAST, WITH_LUNCH, WITH_DINNER, AT_BEDTIME. |
| Int! | Number of days the supplement needs to be taken. |
| Boolean | True if the supplement should be taken on monday, otherwise False. |
| Boolean | True if the supplement should be taken on tuesday, otherwise False. |
| Boolean | True if the supplement should be taken on wednesday, otherwise False. |
| Boolean | True if the supplement should be taken on thursday, otherwise False. |
| Boolean | True if the supplement should be taken on friday, otherwise False. |
| Boolean | True if the supplement should be taken on saturday, otherwise False. |
| Boolean | True if the supplement should be taken on sunday, otherwise False. |
| [SPProtocolInput] | |
| ID! | Id of protocol. |
| DirectionsOfUseInput! | |
| Float! | Quantity of the protocol selected. |
| TimeOfDay! | Time of day the member will take the supplements. Enum: AT_WAKING, WITH_BREAKFAST, WITH_LUNCH, WITH_DINNER, AT_BEDTIME. |
| Boolean | True if the protocol should be taken on monday, otherwise False. |
| Boolean | True if the protocol should be taken on tuesday, otherwise False. |
| Boolean | True if the protocol should be taken on wednesday, otherwise False. |
| Boolean | True if the protocol should be taken on thursday, otherwise False. |
| Boolean | True if the protocol should be taken on friday, otherwise False. |
| Boolean | True if the protocol should be taken on saturday, otherwise False. |
| Boolean | True if the protocol should be taken on sunday, otherwise False. |
Available fields
Field | Type | Description |
| Boolean | True if the supplement plan has been created, Otherwise False. |
| String | Description of the result. |
Examples
Example with Supplements only
Example with Protocols only
Example with Protocols and Supplements
Last updated