Skip to content

Instantly share code, notes, and snippets.

@rajinwonderland
Last active January 28, 2019 18:32
Show Gist options
  • Save rajinwonderland/b1992768f827a2b356079f7f4fbf84d3 to your computer and use it in GitHub Desktop.
Save rajinwonderland/b1992768f827a2b356079f7f4fbf84d3 to your computer and use it in GitHub Desktop.
Types – NestJS GraphQL Example
type Article {
source: Source
author: String
title: String
description: String
url: String
urlToImage: String
publishedAt: Date
content: String
}
type ArticleResponse {
status: String
totalResults: Int
articles: [Article]
}
type Source {
id: String
name: String
description: String
url: String
category: Category
language: String
country: Country
}
type SourceResponse {
status: String
sources: [Source]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment