|
hace 2 años | |
---|---|---|
.vscode | hace 3 años | |
backend | hace 3 años | |
frontend | hace 3 años | |
presentation | hace 2 años | |
README.md | hace 4 años | |
package-lock.json | hace 3 años | |
start.sh | hace 3 años |
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