From d550812af4bbdc9e9673c13da943f96ca05674d4 Mon Sep 17 00:00:00 2001 From: Shivangi Sareen <30644881+shivangisareen@users.noreply.github.com> Date: Sun, 17 Oct 2021 17:26:51 +0100 Subject: [PATCH] Update index.mdx edit {mdx.slug}.js query to use query variable 'id' instead of 'slug' --- docs/docs/tutorial/part-7/index.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/docs/tutorial/part-7/index.mdx b/docs/docs/tutorial/part-7/index.mdx index cc2398e9e8841..87ddae605c5b8 100644 --- a/docs/docs/tutorial/part-7/index.mdx +++ b/docs/docs/tutorial/part-7/index.mdx @@ -354,8 +354,8 @@ Once you have your GraphQL query set up, you can add it to your blog post page t // highlight-start export const query = graphql` - query($slug: String) { - mdx(slug: {eq: $slug}) { + query($id: String) { + mdx(id: {eq: $id}) { body frontmatter { title