From 55e0e859b8c80831be46301b6a94f7171823bee8 Mon Sep 17 00:00:00 2001 From: Petter Hohle Date: Wed, 27 Nov 2024 08:09:08 +0100 Subject: [PATCH] Add query for fetching job postings --- studio/lib/queries/admin.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/studio/lib/queries/admin.ts b/studio/lib/queries/admin.ts index e2b04d475..f85f1679f 100644 --- a/studio/lib/queries/admin.ts +++ b/studio/lib/queries/admin.ts @@ -20,3 +20,15 @@ export const LEGAL_DOCUMENTS_SITEMAP_QUERY = groq` slug } `; + +// Job Postings +export const JOB_POSTINGS_QUERY = groq` + *[_type == "jobPostings"] { + jobPostingsArray[] { + ..., + locations[] -> { + ... + } + } + } +`;