I'm trying to search key text with the graphql endpoint using 'where' but it doesn't seem to work.
Here's my query:
query {
allPages (
where: {
page_url_fulltext: "/collections"
}
) {
totalCount
}
}
But I get no results:
And I absolutely do have a page with the page_url
(which is a key text field) equal to /collections
.
I’ve worked out I need to find a way to run this equivalent REST API query:
[at(my.page.page_url, "/collections")]
The question is how?
Phil
(Phil Snow)
May 7, 2020, 1:53pm
3
Hi Marcello,
Normally this should be possible, but something is currently broken with the GraphQL API and this doesn’t work right now. We hope to work on this soon so that we can resolve this issue.
Sorry for the inconvenience caused by this in the mean time.
1 Like
Okay thanks. Is there any lead time on this? Would you be able to notify me when it’s sorted?
Phil
(Phil Snow)
May 7, 2020, 2:12pm
5
I don’t have a concrete ETA on this, but I can assure you it’s a high priority and I’m tracking it. So once we’ve resolved it we’ll notify you here.
1 Like
gingergm
(Ginger GM Admin)
June 6, 2020, 4:25pm
6
Hi Phil, is my problem below related?
1 Like
@Phil , I just got an email from @Renaud saying this is now fixed? Thought I’d make a note of it here too.
1 Like
Phil
(Phil Snow)
June 24, 2020, 2:32pm
8
Awesome! We’ll update the docs
Just going to double check now.
Phil
(Phil Snow)
June 25, 2020, 1:28pm
10
This indeed fixed. For anyone who needs this fix activated on their account please send a private message to the Activations Team with your repository name as described in this post.
This thread details how to request activation of the following Prismic features:
Integration Fields
Environments (Platinum Plan)
You can also ask for these 'action' requests:
Main locale changes
Deleting user accounts
Media removal requests
Features that are activated by default (Need activated on legacy repos):
GraphQL (Visit https://your-repo-name.prismic.io/graphql to see your GraphQL browser)
New toolbar/edit button (If the preview script in your repo has new=true, you are up to date…
Phil
(Phil Snow)
June 25, 2020, 1:34pm
11
Hi Ginger,
This was indeed related and if you need this fix let the Activations Team know.