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

A 'getDefaultChannel' Error Occurs When Calling the GraphQL Endpoint Locally in a Next.js E-Commerce Application #357

Open
Indeewara-eck3 opened this issue Feb 24, 2025 · 1 comment
Assignees

Comments

@Indeewara-eck3
Copy link

Indeewara-eck3 commented Feb 24, 2025

⨯ {
error: {
message: 'Cannot query field "getDefaultChannel" on type "Query".',
locations: [ { line: 2, column: 5 } ],
extensions: {
file: '************/bagisto-2.0.0/vendor/webonyx/graphql-php/src/Validator/Rules/FieldsOnCorrectType.php',
line: 46
}

I am currently using Bagisto version 2.0 and Next.js Commerce version 2, Bagisto GraphQL API is 2.0.1

@Anmol-Chauhan
Copy link
Collaborator

@Indeewara-eck3, Could you please check this again with Bagisto version 2.2.2 or 2.2.3, along with the latest GraphQL API version? We have made several updates and fixed many issues in these versions.

Additionally, we recommend using the latest version, as we have introduced many new features, optimizations, and a more customer-friendly Bagisto experience.

If you still face the same issue in the latest version, please provide more details about the error, including the specific scenario in which it occurs. It would be even better if you could share a video so we can track the issue and fix it accordingly.

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

2 participants