<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/centrally-enforce-policy-as-code-for-graphql-apis-y6tyxlixf" -->

---
title: Centrally enforce policy as code for GraphQL APIs
description: GraphQL can be used as a central orchestration layer to accelerate development velocity for frontend and backend teams. GraphOS provides GraphQL-native...
canonical: https://daily.dev/posts/centrally-enforce-policy-as-code-for-graphql-apis-y6tyxlixf
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Centrally enforce policy as code for GraphQL APIs | daily.dev
og:description: GraphQL can be used as a central orchestration layer to accelerate development velocity for frontend and backend teams. GraphOS provides GraphQL-native...
og:url: https://daily.dev/posts/centrally-enforce-policy-as-code-for-graphql-apis-y6tyxlixf
og:image: https://api.daily.dev/og/posts/y6TYxLIxf.png
og:image:alt: Centrally enforce policy as code for GraphQL APIs
og:image:width: 1200
og:image:height: 630
og:locale: en
---

[Apollo Blog](https://daily.dev/sources/apollo)

[Read post](https://api.daily.dev/r/y6TYxLIxf)

# [Centrally enforce policy as code for GraphQL APIs](https://api.daily.dev/r/y6TYxLIxf "Go to post")

GraphQL can be used as a central orchestration layer to accelerate development velocity for frontend and backend teams. GraphOS provides GraphQL-native workflows for implementing access control declaratively. Directives such as @authenticated, @requiresScopes, and @policy can be used to enforce authorization policies in the GraphOS router.

[#security](/tags/security "Check all #security posts")[#graphql](/tags/graphql "Check all #graphql posts")[#authorization](/tags/authorization "Check all #authorization posts")

Dec 12, 2023•3m read time•From [apollographql.com](https://api.daily.dev/r/y6TYxLIxf "apollographql.com")

[![Post cover image](https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/d6a801313ed0f82e0a67d250616655d2?_a=AQAEufR)](https://api.daily.dev/r/y6TYxLIxf "Go to post")

Table of contents

[Durable, auditable authorization for supergraphs](https://api.daily.dev/r/y6TYxLIxf "Durable, auditable authorization for supergraphs")[Offload policy definition and resolution with @policy](https://api.daily.dev/r/y6TYxLIxf "Offload policy definition and resolution with @policy")[Get started](https://api.daily.dev/r/y6TYxLIxf "Get started")

22 Impressions

Comment

Bookmark

Copy

![Placeholder image for anonymous user](https://media.daily.dev/image/upload/s--qsFuKGv_--/t_logo,f_auto/public/noProfile)Share your thoughtsPost

[![Apollo Blog's image](https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/cb3bc4fd879a485cacd1cff99536c010)](https://daily.dev/sources/apollo)

[Apollo Blog](https://daily.dev/sources/apollo "https://daily.dev/sources/apollo")

Apollo's platform is dedicated to providing insights and resources for developers and teams buildin... Read more

8 Followers

•

0 Upvotes

#### Would you recommend this post?

Copy link

WhatsApp

Facebook

X

New Squad

Copy linkShare with your friends

```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":"Centrally enforce policy as code for GraphQL APIs","url":"https://daily.dev/posts/centrally-enforce-policy-as-code-for-graphql-apis-y6tyxlixf","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/centrally-enforce-policy-as-code-for-graphql-apis-y6tyxlixf"},"datePublished":"2023-12-12T19:12:23.508Z","dateModified":"2023-12-12T19:12:22.613Z","description":"GraphQL can be used as a central orchestration layer to accelerate development velocity for frontend and backend teams. GraphOS provides GraphQL-native...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/d6a801313ed0f82e0a67d250616655d2?_a=AQAEufR","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/d6a801313ed0f82e0a67d250616655d2?_a=AQAEufR","isAccessibleForFree":true,"articleSection":"Apollo Blog","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":"Apollo Blog","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/cb3bc4fd879a485cacd1cff99536c010","url":"https://daily.dev/sources/apollo"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/centrally-enforce-policy-as-code-for-graphql-apis-y6tyxlixf","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"security,graphql,authorization","timeRequired":"PT3M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Apollo Blog","item":"https://daily.dev/sources/apollo"},{"@type":"ListItem","position":3,"name":"Centrally enforce policy as code for GraphQL APIs"}]}
```

