Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve areaMutation GQL to support grade context #165

Open
3 tasks
vnugent opened this issue Sep 26, 2022 · 0 comments
Open
3 tasks

Improve areaMutation GQL to support grade context #165

vnugent opened this issue Sep 26, 2022 · 0 comments
Labels
complexity - Medium help wanted Extra attention is needed

Comments

@vnugent
Copy link
Contributor

vnugent commented Sep 26, 2022

Use case

As a contributor I want to set the default grade context for an area.

Todo

  • Add grade context to GQL typedef
  • Update the corresponding type
  • Record grade context object in db.
    if (areaName != null) area.set({ area_name: areaName })
    if (description != null) area.set({ 'content.description': description })
    if (shortCode != null) area.set({ shortCode: shortCode.toUpperCase() })
    if (isDestination != null) area.set({ 'metadata.isDestination': isDestination })
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
complexity - Medium help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant