typeDefs.js
const { gql } = require("apollo-server");

const typeDefs = gql`
  type Hero {
    id: ID
    name: String!
    photo: String!
  }

  type Villain {
    id: ID
    name: String!
    photo: String!
  }

  type Movie {
    id: ID
    name: String!
    link: String!
    villain: Villain!
    heroes: [Hero!]!
  }

  type Query {
    getMovies: [Mission!]!
  }
`;

module.exports = typeDefs;