Skip to content

Fulltext directive breaks: Error: _Schema__orderBy values must be an object with value names as keys. #1804

@cbrzn

Description

@cbrzn

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

Screenshot 2020-07-23 at 21 54 38

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions