title: graphql where clause Angular Apollo Client
body: <p>Using angular apollo client.</p>
  
  <p>I'm trying to use the where clause  </p>
  
  <pre><code>getPage(slug: string) {
      return this.apollo
        .query({
          variables: {
            slug: slug
          },
          query: gql`
            query pages(where: { $slug: slug }) {
              pages (slug: $slug) {
                slug,
                title,
                content,
                cover {
                  name,
                  url,
                },
                createdAt,
                updatedAt
              }
            }
          `
        });
    }
  </code></pre>
  
  <p>I get this error in browser console:</p>
  
  <p><code>message: "Syntax Error: Expected $, found Name "where""</code></p>