Use netlify functions

This commit is contained in:
Trevor Blades
2022-02-24 21:07:10 -08:00
parent 262ae08628
commit 7b7bf6251a
14 changed files with 64051 additions and 87 deletions

View File

@@ -0,0 +1 @@
module.exports = require('./src/netlify/functions/graphql/graphql.js')

View File

@@ -0,0 +1 @@
{"type":"commonjs"}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,64 @@
type Country @key(fields: "code") {
code: ID!
name: String!
native: String!
phone: String!
continent: Continent!
capital: String
currency: String
languages: [Language!]!
emoji: String!
emojiU: String!
states: [State!]!
}
type Continent @key(fields: "code") {
code: ID!
name: String!
countries: [Country!]!
}
type Language @key(fields: "code") {
code: ID!
name: String
native: String
rtl: Boolean!
}
type State {
code: String
name: String!
country: Country!
}
input StringQueryOperatorInput {
eq: String
ne: String
in: [String]
nin: [String]
regex: String
glob: String
}
input CountryFilterInput {
code: StringQueryOperatorInput
currency: StringQueryOperatorInput
continent: StringQueryOperatorInput
}
input ContinentFilterInput {
code: StringQueryOperatorInput
}
input LanguageFilterInput {
code: StringQueryOperatorInput
}
type Query {
countries(filter: CountryFilterInput): [Country!]!
country(code: ID!): Country
continents(filter: ContinentFilterInput): [Continent!]!
continent(code: ID!): Continent
languages(filter: LanguageFilterInput): [Language!]!
language(code: ID!): Language
}