Hey everyone,
I'm new to Webstudio, coming from Webflow, and I'm excited to learn! However, after three days of trying, I decided to ask for help.
I'm trying to dynamically filter a page based on the slug using GraphQL and Supabase, but instead of retrieving just the matching record, it's returning the entire table.
What I’ve done so far:
I set up a GraphQL Resource in Webstudio, connecting it to Supabase.
The query I’m using looks something like this:
query GetVacatureBySlug($slug: String!) {
vacaturesdosCollection(filter: { slug: { eq: $slug } }, first: 1) {
edges {
node {
id
title
slug
place
}
}
}
}
I’m passing { slug: system.params.slug } in the GraphQL variables.
The page URL updates correctly with the slug, but the data isn’t filtering—it just returns all records.
What’s happening:
When using system.params.slug, it doesn’t filter and just returns the whole dataset.
Any ideas on what I might be missing?
Sharelink:
https://p-a01b268b-ddfb-4306-aca5-578d3895b1ec.apps.webstudio.is/?pageId=sf6h9L9gnqW28ue0zZGGM&authToken=d389f970-42ab-478c-b9ea-915b2ef6a8d5&mode=previewThanks in advance!