Skip to content

Using derivedFrom on Interfaces failing with Cannot read properties of undefined (reading 'fields') on graph-cli 0.57 #1449

@itsjerryokolo

Description

@itsjerryokolo

Which packages are impacted by your issue?

@graphprotocol/graph-cli

Describe the issue

Using derivedFrom on Interfaces failing with Cannot read properties of undefined (reading 'fields') on graph-cli 0.57

Screenshot 2023-09-08 at 3 21 07 PM

I've attached the relevant lines on the github links below:

https://github.com/wighawag/conquest-graph/blob/06b6e04480bdd227c2e93b049af7c885a60815f4/schema.graphql#L172
https://github.com/wighawag/conquest-graph/blob/06b6e04480bdd227c2e93b049af7c885a60815f4/schema.graphql#L149C12-L149C22

This currently works on cli version 0.51.2

Reproduction

https://github.com/wighawag/conquest-graph

Steps to Reproduce the Bug or Issue

Clone the repo below, install graph cli 0.57.0 and run graph codegen

https://github.com/wighawag/conquest-graph

Expected behavior

codegen shouldn't fail

Screenshots or Videos

No response

Platform

nil

Subgraph Manifest

No response

Subgraph GraphQL Schema

No response

Additional context

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

Status

✅ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions