Skip to content

Latest commit

 

History

History
82 lines (66 loc) · 2.32 KB

README.md

File metadata and controls

82 lines (66 loc) · 2.32 KB

Salesforce + GraphQL

☁︎ Building APIs with GraphQL and Salesforce


Blogs

Major Update

  • The project is now using jsforce instead of nForce
  • Added CRUDs for multiple account records.

Preview


Getting Started

  1. Download the project
git clone https://github.com/wearemav3rik/salesforce-graphql.git
  1. Install the packages
yarn install
  1. Start the GraphQL server
yarn start
  1. Go to your browser and open http://localhost:4000/graphql

Objectives

  • Use nForce to integrate and perform queries with Salesforce
  • Utilise existing patterns in the project: Node nForce
  • Use jsforce to integrate and perform queries with Salesforce
  • Create an easy to use pattern for GraphQL and Salesforce
  • Utilise these patterns as back-end for React and React Native salesforce projects

Dependencies

Environment Variables

  • Use a .env file in your application's directory
CONSUMER_KEY = 
CONSUMER_SECRET = 
SALESFORCE_USERNAME = 
SALESFORCE_PASSWORD = 
SALESFORCE_SECURITY_TOKEN = 

Libraries

Contributing

Todos

  • Add more mutations
    • Create multiple accounts
    • Update multiple accounts
    • Delete multiple accounts
    • Upsert multiple accounts
  • Fill up GraphiQL documentation
    • queries
    • mutation
  • Use facebook dataloader to improve query scalability