Crowdhound connects dog owners with local people that would love the opportunity to chill with a dog for an afternoon or a few days, without having the responsibility 24/7/365.
Changes proposed in this pull request:
This PR adds functionality to add a location to a user via GraphQL. Adding a location requires a valid google_token.
Adds spec for addLocation mutation
Adds addLocation mutation, requires lcoation: argument and returns a message attribute
Adds LocationInputType to support addLocation mutation
Updates README to include documentation for addLocation mutation
UPDATE: Adds rescue block to addLocation mutation
UPDATE: Change User has_one Location relationship to include dependent_destroy
Resolves #69
The following checks have been completed:
[x] Tested my new feature(s) as well as any feasible edge cases (if possible)
[x] Checked coverage/index.html - did not add any new code that's not covered by testing (if possible)
[x] Merged in the latest master to my branch with git pull origin master & resolved merge conflicts
[x] Ran rails db:migrate
[x] Ran the test suite - all tests are passing (or maybe skipped)
[x] Checked affected endpoints in Postman / GraphiQL
[x] Updated README for changes (new endpoints, new gems, etc)
Changes proposed in this pull request: This PR adds functionality to add a location to a user via GraphQL. Adding a location requires a valid
google_token
.message
attributehas_one
Location relationship to includedependent_destroy
Resolves #69
The following checks have been completed:
coverage/index.html
- did not add any new code that's not covered by testing (if possible)git pull origin master
& resolved merge conflictsrails db:migrate