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

How to query entities like CurrentFees and TotalRewards? #131

Open
secsec2025 opened this issue Dec 5, 2023 · 0 comments
Open

How to query entities like CurrentFees and TotalRewards? #131

secsec2025 opened this issue Dec 5, 2023 · 0 comments

Comments

@secsec2025
Copy link

In the Graph playground, it is not possible to query for the above mentioned entities. This is due to the entity names are being in plural form which conflicts with the GraphQL server.
For example, the following query will result in an error.

query MyGraphQ {
	currentFees {
		id
    feeBasisPoints
    treasuryFeeBasisPoints
    insuranceFeeBasisPoints
    operatorsFeeBasisPoints
	}
}

The error will be,

{
	"errors": [
		{
			"locations": [
				{
					"column": 0,
					"line": 0
				}
			],
			"message": "No value provided for required argument: `id`"
		}
	]
}

How to resolve this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant