-
Notifications
You must be signed in to change notification settings - Fork 1k
Description
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
Trying to develop the fulltext search query in a subgraph and I am getting an error, this is what's happening:
I have added the fulltext search directive and had to update graph packages in order to make this functionality available (since it's a new one). Right now everything compiles, the deployment works, but when I go to http://localhost:8000/subgraphs/name/protofire/omen/graphql
, I am getting an error:
Error: _Schema__orderBy values must be an object with value names as keys.
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem.
- Download the repository https://github.com/dOrgTech/omen-subgraph
- Checkout to branch
issue-28-fulltext_search_support
- Make sure you have docker installed and running
- Run in a terminal (inside of project's folder):
docker-compose up
, wait until everything is downloaded and running - In another terminal, do:
npm i && npm run migrate && npm run codegen && npm run create-local && npm run deploy-local
- Go to browser and go to the following url:
http://localhost:8000/subgraphs/name/protofire/omen
- You should see the error
What is the expected behavior?
I should be able to do queries and test this new directive
edit: you can check the source code here https://github.com/protofire/omen-subgraph/pull/32/files