nautls / ergo-graphql

Ergo Platform GraphQL server
MIT License
16 stars 1 forks source link

Block header extension fields object not working #61

Open pulsarz opened 2 years ago

pulsarz commented 2 years ago

We can retrieve headerId and digest from the extension object but the fields object does not work. query Extension { blocks { header { extension { headerId digest fields } } } } image

SepehrGanji commented 2 years ago

@capt-nemo429 Please provide the right db credentials for me to check this issue.

SepehrGanji commented 9 months ago

@arobsn I need node_extentions table permission on the Explorer DB to explore this further. I found out there's nothing wrong with the syntax, it's pretty similar to other JSON objects that we were trying to fetch from the DB, so maybe somehow the DB has different data. So we can do two things:

  1. Take a look into the DB and change the type of extension in the application, maybe to string.
  2. Create a transformer for it, like additional registers. (In src/graphql/interfaces/box-interface)