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

feat: T-920 Add graphql query for billable metrics #14

Merged
merged 6 commits into from
Mar 18, 2022

Conversation

vincent-pochet
Copy link
Collaborator

@vincent-pochet vincent-pochet commented Mar 17, 2022

Add query resolver to fetch billable metrics of an organization.

Input

  • A valid JWT token in Authorization header
  • The current organization id in x-lago-organization header
  • Optional page and limit arguments

Success

The query returns a paginated collection with metadata to get currentPage, totalPage, totalCount and limitValue

Errors

forbidden with Missing organization id or Not in organization messages

@vincent-pochet vincent-pochet added the enhancement New feature or request label Mar 17, 2022
@vincent-pochet vincent-pochet self-assigned this Mar 17, 2022
@height
Copy link

height bot commented Mar 17, 2022

This pull request has been linked to 1 task:

💡Tip: Add "Close T-920" to the pull request title or description, to a commit message, or in a comment to mark this task as "Done" when the pull request is merged.

Copy link
Contributor

@jdenquin jdenquin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you rocks! 🎸

@vincent-pochet vincent-pochet merged commit 9f3f2e2 into main Mar 18, 2022
@vincent-pochet vincent-pochet deleted the T-920-api-add-graphql-query-for-billablemetric branch March 18, 2022 09:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants