This repository has been archived by the owner on Nov 15, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 19
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Codecov Report
@@ Coverage Diff @@
## master #139 +/- ##
==========================================
+ Coverage 22.88% 43.9% +21.01%
==========================================
Files 26 47 +21
Lines 1302 2091 +789
==========================================
+ Hits 298 918 +620
- Misses 974 1129 +155
- Partials 30 44 +14
Continue to review full report at Codecov.
|
jalxes
reviewed
Jun 5, 2018
"github.com/graphql-go/graphql" | ||
) | ||
|
||
type getAllCatsFn func() ([]model.Category, error) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Closed
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
connected to #297
Schema a ser desenvolvido:
Types:
Organization
id:Int!, email:String!, logo:String!, name:String!, phone:String!, slug:String!, video:String!,about:String!,address:Address!
Address
city:String, complement:String, neighbordhood:String, number:String, state:String, street:String, zipcode:String
Category
icon:String!, id:Int!, name:String!
needsCount:Int!
Need
category: Category, description: String!, dueDate: Date, id: Int!, organization: Organization, reachedQuantity: Int, requiredQuantity: Int, status: NeedStatus, title: String!, unity: String
createdAt:Date
updatedAt:Date
images: [NeedImage]
NeedImage
id:Int!,name:String!,url:String!
OrganizationImage
id:Int!,name:String!,url:String!
NeedStatus
:ACTIVE
,INACTIVE
LoginResult
:organization:Organization, token:String!
Queries:
allCategories(): [Category]
category(id:Int!): Category
need(id:Int!): Need
organization(id:Int!): Organization
search(categories:[Int],organization:Int,page:Int,text:String): [Need]
viewer(token:String!): Organization
Mutations:
login(email:String!, password:String!): LoginResult
viewer(token:String!):ViewerMutation
subscribeToOrganization(input:SubscribeOrganizationInput): SubscribeOrganizationPayload
SubscribeOrganizationInput
organizationId:Int!
email:String!
SubscribeOrganizationPayload
organization:Organization
unsubscribeToOrganization(input:UnsubscribeOrganizationInput): UnsubscribeOrganizationPayload
UnsubscribeOrganizationInput
organizationId:Int!
email:String!
UnsubscribeOrganizationPayload
organization:Organization
email:String!
resetPassword(input:ResetPasswordInput):ResetPasswordPaylod
ResetPasswordInput
token:String!
newPassword:String!
ResetPasswordPayload
organization:Organization
answerNeed(input:AnswerNeedInput):AnswerNeedPaylod
AnswerNeedInput
email:String, name:String!,phone:String,address:AddressInput,message:String!
AnswerNeedPaylod
need:Need
ViewerMutation
needCreate(input: NeedCreateInput): NeedCreatePayload
NeedCreateInput
unity: String!, dueDate: Date, categoryId: Int!, title: String!, description: String!, requiredQuantity: Int, reachedQuantity: Int
NeedCreatePayload
need: Need
needUpdate(input: NeedUpdateInput): NeedUpdatePayload
NeedUpdateInput
id:Int!
patch: NeedPatchInput!
NeedPatchInput
reachedQuantity: Int, unity: String, dueDate: Date, categoryId: Int, status: NeedStatus, title: String, description: String, requiredQuantity: Int
needImageCreate(input: NeedImageCreateInput): NeedImageCreatePayload
NeedImageCreateInput
name:String!, file:Upload
NeedImageCreatePayload
need: Need
image: NeedImage
needImageDelete(input: NeedImageDeleteInput): NeedImageDeletePayload
NeedImageDeleteInput
needImageId:Int!
NeedImageDeletePayload
need: Need
image: NeedImage
organizationUpdate(input: OrganizationUpdateInput): OrganizationUpdatePayload
OrganizationUpdateInput
address: AddressInput, name: String, logo: String, phone: String, about: String, video: String, email: String
AddressInput
neighbordhood: String, city: String, state: String, zipcode: String, street: String, number: String, complement: String
OrganizationUpdatePayload
organization: Organization
updatePassword(input: UpdatePasswordInput): UpdatePasswordPayload
UpdatePasswordInput
currentPassword: String!, newPassword: String!
UpdatePasswordPayload
organization: Organization
organizationImageCreate(input:OrganizationImageCreateInput): OrganizationImageCreatePayload
OrganizationImageCreateInput
name:String!, file:Upload
OrganizationImageCreatePayload
organization:Organization
image: OrganizationImage
organizationImageDelete(input:OrganizationImageDeleteInput): OrganizationImageDeletePayload
OrganizationImageDeleteInput
organizationImageId:Int!
OrganizationImageDeletePayload
organization:Organization
image:OrganizationImage