|
2 years ago | |
---|---|---|
.vscode | 3 years ago | |
backend | 3 years ago | |
frontend | 3 years ago | |
presentation | 2 years ago | |
README.md | 4 years ago | |
package-lock.json | 3 years ago | |
start.sh | 3 years ago |
import gql from "graphql-tag";
export const pizzaSchema = gql``;
show generated code
create index.ts
index.ts
import { ApolloServer } from "apollo-server/dist";
const server = new ApolloServer({});
server.listen().then(({ url, subscriptionsUrl }) => {
console.log(`🚀 Server ready at ${url}`)
console.log(`🚀 Subscriptions ready at ${subscriptionsUrl}`);
});
show playground and run listPizza
create resolve config with empty array
create pizza list
create pizzaResolver.ts
add read/list function
add resolver to resolver config
show get and list
add toppings
show type resolvers
show Mutation
show Subscription
show finished api
git clone git@ziermach.de:cziermann/angular-demo-template.git
npm i
npm add apollo-angular
ng add apollo-angular
npm add graphql
npm add --save-dev @graphql-codegen/cli
npm i
npx graphql-codegen init
npm i
output default
set uri in graphql module
move
ng add @angular/material
(style - default)
ng g c pizza-list