Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Collection attributes resolver #55

Open
vikiival opened this issue Oct 18, 2023 · 3 comments
Open

Collection attributes resolver #55

vikiival opened this issue Oct 18, 2023 · 3 comments

Comments

@vikiival
Copy link
Member

To be able to show properties in sidebar we need to write a resolver.
resolver needs return list of attributes.

SELECT me.attributes from token_entity
left join  metadata_entity me on token_entity.meta_id = me.id
where token_entity.collection_id = ${id};

Deliverables:
I want to see a resolver that takes collection id as parameter and returns a list of attributes

Ref:

Blocked by?

@daiagi
Copy link

daiagi commented Oct 19, 2023

should return a list of all the attributes of all the collection members?

i think it should be SELECT ... from nft_entity
no?

@vikiival
Copy link
Member Author

i think it should be

As I remember you said that token entity is groped by collection and image.

So easier to select over smol range of rows, no?

@daiagi
Copy link

daiagi commented Oct 21, 2023

but token entities are created based on image / media only
so you could have nft's with not same metadata under 1 token entity
for example - copies.
don't have the same name but have same image

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

No branches or pull requests

2 participants