text: import { gql } from 'apollo-server-micro'
  
  export default gql`
    extend type Query {
      me: User
      user(name: String!): User
      users: [User!]
      nameAvailable(name: String!): Boolean!
    }
  
    extend type Mutation {
      setName(name: String!): Boolean
      setSettings(tipDefault: Int!): Boolean
      setTheme(theme: String!): Boolean
      upsertBio(bio: String!): User!
    }
  
    type User {
      id: ID!
      createdAt: String!
      name: String
      nitems: Int!
      ncomments: Int!
      stacked: Int!
      freePosts: Int!
      freeComments: Int!
      hasNewNotes: Boolean!
      hasInvites: Boolean!
      tipDefault: Int!
      bio: Item
      sats: Int!
      msats: Int!
      theme: String!
    }
  `
  