Skip to content

React Native app com Redux e React Navigation e servidor GraphQL com Apollo Server e Mongoose

Notifications You must be signed in to change notification settings

victorsferreira/react-native-redux-apollo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

App

Para iniciar o APP no emulador (o emulador precisa ter o nome ReactNative)

$ cd app

$ npm start

$ npm run emulator

$ npm run android

Servidor

Para iniciar o servidor graphql

$ cd server

$ npm start

Com o servidor iniciado, você pode usar a ferramenta GraphiQL (http://localhost:8080/graphiql). Existem 2 mutations e 1 query configurados:

mutation create{
	createEmployee(name: "Victor Ferreira", company_id: "OI394363", phone: "21989861063"){
		name,
		company_id
	}
}

query getAll{
	employees{
		name,
		company_id
	}
}

mutation delete{
	deleteEmployee(company_id: "OI394363"){
		name,
		company_id
	}
}

About

React Native app com Redux e React Navigation e servidor GraphQL com Apollo Server e Mongoose

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages