Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Mar 9, 2021. It is now read-only.

Commit d44699e

Browse files
committed
Added comments for better understanding of schemas and their seggregation
1 parent 30b2fe1 commit d44699e

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/schema/index.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
import { gql } from 'apollo-server-express'
22

3+
// Common schemas
4+
// Schema for UserProfile
35
import userSchema from './user'
6+
7+
// Events related schemas
48
import eventProfileSchema from './event-profile'
59
import eventDetails from './event-details'
610
import eventGroupMemberRoleChoice from './event-group-member-role-choice'
@@ -17,9 +21,12 @@ import event from './event'
1721
import interestTagChoice from './interest-tag-choice'
1822
import paymentCurrencyChoice from './payment-curreny-choice'
1923
import paymentDetails from './payment-details'
20-
import socialProfile from './social-profile'
2124
import subEvent from './sub-event'
25+
26+
// Profile extensions. These are used to extend the base User schema
2227
import eventProfile from './event-profile'
28+
import socialProfile from "./social-profile";
29+
2330

2431
const linkSchema = gql`
2532
scalar DateTime

0 commit comments

Comments
 (0)