This repository was archived by the owner on May 4, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +108
-0
lines changed Expand file tree Collapse file tree 1 file changed +108
-0
lines changed Original file line number Diff line number Diff line change @@ -399,3 +399,111 @@ export const GET_RECIPE_VOTES_QUERY = gql`
399399 }
400400 }
401401` ;
402+
403+ export const GET_RECIPE = gql `
404+ query getRecipe($recipeId: Long!) {
405+ recipe: assistantRecipe(id: $recipeId) {
406+ id
407+ code
408+ name
409+ tags
410+ uses
411+ imports
412+ upvotes
413+ language
414+ keywords
415+ downvotes
416+ isUpVoted
417+ isDownVoted
418+ description
419+ isSubscribed
420+ commentsCount
421+ averageRating
422+ presentableFormat
423+ creationTimestampMs
424+ owner {
425+ id
426+ slug
427+ displayName
428+ }
429+ cookbook {
430+ id
431+ name
432+ }
433+ dependencyConstraints {
434+ name
435+ }
436+ }
437+ }
438+ ` ;
439+
440+ export const GET_COOKBOOK_RECIPES = gql `
441+ query getCookbookRecipes(
442+ $cookbookId: Long!
443+ $howmany: Long!
444+ $skip: Long!
445+ $name: String
446+ $orderBy: AssistantRecipeQueryOrderBy
447+ $desc: Boolean
448+ ) {
449+ cookbook: assistantCookbook(id: $cookbookId) {
450+ id
451+ name
452+ isPublic
453+ isSubscribed
454+ recipesCount
455+ creationTimestampMs
456+ groups {
457+ id
458+ name
459+ }
460+ owner {
461+ id
462+ hasSlug
463+ slug
464+ displayName
465+ }
466+ upvotes
467+ downvotes
468+ languages
469+ recipes(
470+ howmany: $howmany
471+ skip: $skip
472+ name: $name
473+ orderBy: $orderBy
474+ desc: $desc
475+ ) {
476+ id
477+ name
478+ code
479+ tags
480+ uses
481+ imports
482+ upvotes
483+ language
484+ keywords
485+ downvotes
486+ isUpVoted
487+ isDownVoted
488+ description
489+ isSubscribed
490+ commentsCount
491+ averageRating
492+ presentableFormat
493+ creationTimestampMs
494+ owner {
495+ id
496+ slug
497+ displayName
498+ }
499+ cookbook {
500+ id
501+ name
502+ }
503+ dependencyConstraints {
504+ name
505+ }
506+ }
507+ }
508+ }
509+ ` ;
You can’t perform that action at this time.
0 commit comments