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

Query for all substances missing substances that are in the dataset #42

Open
d6y opened this issue Jun 19, 2021 · 3 comments
Open

Query for all substances missing substances that are in the dataset #42

d6y opened this issue Jun 19, 2021 · 3 comments

Comments

@d6y
Copy link

d6y commented Jun 19, 2021

Hello 👋

This might well be my misunderstanding of the queries available. Apologies in advance if I'm getting this confused.

If I query with a large limit and no other restrictions:

substances(limit: 999) {
     name 
     url
}

...I receive 290 results. However, this is not all the substances available.

For example:

substances(query: "Allylescaline") {
     name 
     url
}

...does produce a record, but that record is not included in the original (limit:999) query.

I suppose my expectation is that the limit:999 query would return all (or, up to 999) substances.

Thanks for making this excellent resource available.

@19h
Copy link
Member

19h commented Jun 23, 2021

There's currently 296 substances in the category that's used by Bifrost to reference substances via their semantic metadata: https://psychonautwiki.org/wiki/Category:Psychoactive_substance.

@d6y
Copy link
Author

d6y commented Jun 24, 2021

Thank you for the information!

I do see https://psychonautwiki.org/wiki/Allylescaline in that category of 296 (on page 1 of the list, on the Wiki).

But using the user interface at https://api.psychonautwiki.org/ there's no Allylescaline in the API query results (the limit:999 query). Weird!

@Andeskjerf
Copy link

I'm having the same issue. LSD doesn't show up if I use the limit query, but it works if I query by name. Allylescaline does not show up in my query either.

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

3 participants