Answers.Body: <p>You'll want to use <code>siteId</code> for this.</p>
  <pre><code>query {
      entries (section: &quot;newsIntranet&quot;, siteId: &quot;2&quot;) {
          title
          postDate
          expiryDate
          contentText
      }
  }
  </code></pre>
  <p>Swap out &quot;2&quot; with whatever the <code>siteId</code> of the French site is on your system.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-11-10T09:33:54.020Z
Answers.Text: Thank you a lot for your quick and helpful answer!
Answers.UserDisplayName: dannybucks
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-11-10T00:13:07.707Z
Answers.LastActivityDate: 2020-11-10T00:13:07.707Z
Answers.UserDisplayName: Brad Bell
Body: <p>I try to use graphQL to get language specific entries from my Craft CMS. I (naively?) tried this:</p>
  <pre><code>query {
      entries (section: &quot;newsIntranet&quot;, language: &quot;fr&quot;) {
          title
          postDate
          expiryDate
          contentText
      }
  }
  </code></pre>
  <p>because of this part of <a href="https://craftcms.com/docs/3.x/graphql.html#pre-defined-interfaces" rel="nofollow noreferrer">doc</a>.
  How can I get make sure that I only get entries of a given language when using graphQL from an extrernal system?</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2020-11-09T15:02:55.717Z
Comments.Text: I tried using language too, and didn't seem to be able to make it work either.
  Have you tried using `site` or `siteId` instead? That seems to work for me.
Comments.UserDisplayName: Joorren
Tags: <language><graphql>
Title: Filter for language when using graphQL
ThreadText: # Filter for language when using graphQL
  
  (Asked by: username_0 on 2020-11-09)
  
  I try to use graphQL to get language specific entries from my Craft CMS. I (naively?) tried this:
  
  ```
  query {
      entries (section: "newsIntranet", language: "fr") {
          title
          postDate
          expiryDate
          contentText
      }
  }
  
  ```
  
  because of this part of [doc](https://craftcms.com/docs/3.x/graphql.html#pre-defined-interfaces).
  How can I get make sure that I only get entries of a given language when using graphQL from an extrernal system?
  
  **Tags:** language, graphql
  
  > **Comments:**
  > **username_1**: I tried using language too, and didn't seem to be able to make it work either. Have you tried using `site` or `siteId` instead? That seems to work for me.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2020-11-10. Score: 2 | Accepted answer
  
  You'll want to use `siteId` for this.
  
  ```
  query {
      entries (section: "newsIntranet", siteId: "2") {
          title
          postDate
          expiryDate
          contentText
      }
  }
  
  ```
  
  Swap out "2" with whatever the `siteId` of the French site is on your system.
  
  > **Comments:**
  > **username_0**: Thank you a lot for your quick and helpful answer!  
  
  ---
  
  