<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/updated-function-syntax-on-the-segment-query-language-8r4tcvark" -->

---
title: Updated function syntax on the segment query language
description: Starting with Shopify&#x27;s GraphQL Admin API version 2026-10, functions in the segment query language switch from `= true`/`= false` syntax to `MATCHES`/`NOT...
canonical: https://daily.dev/posts/updated-function-syntax-on-the-segment-query-language-8r4tcvark
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Updated function syntax on the segment query language | daily.dev
og:description: Starting with Shopify&#x27;s GraphQL Admin API version 2026-10, functions in the segment query language switch from `= true`/`= false` syntax to `MATCHES`/`NOT...
og:url: https://daily.dev/posts/updated-function-syntax-on-the-segment-query-language-8r4tcvark
og:image: https://api.daily.dev/og/posts/8r4TCVARK.png
og:image:alt: Updated function syntax on the segment query language
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Updated function syntax on the segment query language

**[Shopify Developer changelog](https://daily.dev/sources/shopifychangelog)** · 1 min read · 0 upvotes · 0 comments

## Summary

Starting with Shopify's GraphQL Admin API version 2026-10, functions in the segment query language switch from `= true`/`= false` syntax to `MATCHES`/`NOT MATCHES` operators. Function parameters now support their own operators, enabling previously impossible queries. Several named dates have been deprecated in favor of existing date offsets, with examples showing the equivalent offset syntax.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://shopify.dev/changelog/updated-function-syntax-on-the-segment-query-language>

## Questions this post answers

### How does the segment query language function syntax change in Shopify GraphQL Admin API version 2026-10?

Functions now use MATCHES and NOT MATCHES operators instead of the old `= true`/`= false` syntax. Function parameters also gained their own operators, which expands what queries are possible, enabling parameter comparisons that previously could not be expressed in segment queries.

_Developers migrating Shopify segment queries can track syntax changes like this through daily.dev._

### What happened to named dates in Shopify's segment query language as of API version 2026-10?

Several named dates were deprecated in the segment query language starting with GraphQL Admin API version 2026-10. Developers should replace them with existing date offsets instead; for example, the deprecated 12-month named date is equivalent to the date offset -12m.

_Anyone updating Shopify segmentation queries can keep tabs on deprecations like this via daily.dev._

## Similar posts on daily.dev

- [Invalid metafield queries now return errors in the GraphQL Admin API](https://daily.dev/posts/invalid-metafield-queries-now-return-errors-in-the-graphql-admin-api-sohgl4b9o) · Shopify Developer changelog · 0 upvotes · 0 comments
- [Advanced Metafield & Metaobject Querying](https://daily.dev/posts/advanced-metafield-metaobject-querying-quwsdmcne) · Shopify Developer changelog · 0 upvotes · 0 comments
- [Analytics metric targets now available in the GraphQL Admin API](https://daily.dev/posts/analytics-metric-targets-now-available-in-the-graphql-admin-api-qf5tm4ha1) · Shopify Developer changelog · 0 upvotes · 0 comments
- [Postgres Changes gets AND filters, new operators, and column selection](https://daily.dev/posts/postgres-changes-gets-and-filters-new-operators-and-column-selection-ejffdwnv1) · Supabase · 32 upvotes · 3 comments
- [Shopify Reports 15X Faster Graphql Execution with Breadth First Engine](https://daily.dev/posts/shopify-reports-15x-faster-graphql-execution-with-breadth-first-engine-0xn3kh03q) · InfoQ · 1 upvotes · 0 comments

---

Tags: [#graphql](https://daily.dev/tags/graphql), [#shopify](https://daily.dev/tags/shopify)

[View this post on daily.dev](https://daily.dev/posts/updated-function-syntax-on-the-segment-query-language-8r4tcvark)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Updated function syntax on the segment query language","url":"https://daily.dev/posts/updated-function-syntax-on-the-segment-query-language-8r4tcvark","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/updated-function-syntax-on-the-segment-query-language-8r4tcvark"},"datePublished":"2026-10-01T11:03:05.681Z","dateModified":"2026-10-01T11:03:22.758Z","description":"Starting with Shopify's GraphQL Admin API version 2026-10, functions in the segment query language switch from `= true`/`= false` syntax to `MATCHES`/`NOT...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/a5b9f0de82c011d79696b4f6b99b7364?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/a5b9f0de82c011d79696b4f6b99b7364?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Shopify Developer changelog","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Shopify Developer changelog","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/aefcb5d2c1ca4b45b5d2256b9e2a9cc3","url":"https://daily.dev/sources/shopifychangelog"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/updated-function-syntax-on-the-segment-query-language-8r4tcvark","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"graphql,shopify","timeRequired":"PT1M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Shopify Developer changelog","item":"https://daily.dev/sources/shopifychangelog"},{"@type":"ListItem","position":3,"name":"Updated function syntax on the segment query language"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/updated-function-syntax-on-the-segment-query-language-8r4tcvark#faq","mainEntity":[{"@type":"Question","name":"How does the segment query language function syntax change in Shopify GraphQL Admin API version 2026-10?","acceptedAnswer":{"@type":"Answer","text":"Functions now use MATCHES and NOT MATCHES operators instead of the old `= true`/`= false` syntax. Function parameters also gained their own operators, which expands what queries are possible, enabling parameter comparisons that previously could not be expressed in segment queries. Developers migrating Shopify segment queries can track syntax changes like this through daily.dev."}},{"@type":"Question","name":"What happened to named dates in Shopify's segment query language as of API version 2026-10?","acceptedAnswer":{"@type":"Answer","text":"Several named dates were deprecated in the segment query language starting with GraphQL Admin API version 2026-10. Developers should replace them with existing date offsets instead; for example, the deprecated 12-month named date is equivalent to the date offset -12m. Anyone updating Shopify segmentation queries can keep tabs on deprecations like this via daily.dev."}}]}
```

