diff --git a/messages/graphql.md b/messages/graphql.md index 414c091..97bf69a 100644 --- a/messages/graphql.md +++ b/messages/graphql.md @@ -14,24 +14,22 @@ Run any valid GraphQL statement via the /graphql [API](https://developer.salesfo - Runs a mutation to create an Account, with an `example.txt` file, containing -```text -mutation AccountExample{ - uiapi { - AccountCreate(input: { - Account: { - Name: "Trailblazer Express" - } - }) { - Record { - Id - Name { - value + mutation AccountExample{ + uiapi { + AccountCreate(input: { + Account: { + Name: "Trailblazer Express" + } + }) { + Record { + Id + Name { + value + } } } } } -} -``` <%= config.bin %> <%= command.id %> --body example.txt diff --git a/messages/rest.md b/messages/rest.md index 3df1b3b..7fa6931 100644 --- a/messages/rest.md +++ b/messages/rest.md @@ -22,12 +22,10 @@ Make an authenticated HTTP request to Salesforce REST API and print the response - or with a file 'info.json' containing -```json -{ - "Name": "Demo", - "ShippingCity": "Boise" -} -``` + { + "Name": "Demo", + "ShippingCity": "Boise" + } <%= config.bin %> <%= command.id %> 'sobjects/account' --body info.json --method POST