Skip to content
This repository has been archived by the owner on Apr 30, 2023. It is now read-only.

Create User type in schema #19

Open
roiLeo opened this issue Dec 20, 2021 · 3 comments
Open

Create User type in schema #19

roiLeo opened this issue Dec 20, 2021 · 3 comments

Comments

@roiLeo
Copy link

roiLeo commented Dec 20, 2021

We could create an User type like this to better filter on profile:

type User @entity {
  id: ID!
  owned: [NFTEntity!]! @derivedFrom(field: "currentOwner")
  created: [NFTEntity!]! @derivedFrom(field: "issuer")
}
@vikiival
Copy link
Member

In #19 I was thinking to call it account

but first iteration is commited: ee07f9b

@roiLeo
Copy link
Author

roiLeo commented Dec 27, 2021

Got some errors here:

<subql-node> ERROR node failed to start AssertionError: Please check entity User with field owned has correct relation with entity NFTEntity

Edit: fixed

new one:

<store> ERROR Having a problem when syncing schema SequelizeDatabaseError: column "issuer_id" does not exist

@vikiival
Copy link
Member

Oh NFTEntity should have issuerId instead of issuer

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants