Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/fetch postby user #1910

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
80 commits
Select commit Hold shift + click to select a range
59fd354
added post in user type
AVtheking Jan 19, 2024
17a957c
'fix
AVtheking Jan 19, 2024
926408f
added test for user.post resolver
AVtheking Jan 19, 2024
e8df4b9
fix failing test
AVtheking Jan 20, 2024
9c3c672
fix any type
AVtheking Jan 21, 2024
a9e1fcb
fix: made the RECAPTCHA_SITE_KEY mandatory if RECAPTCHA_SITE_KEY is …
Doraemon012 Jan 18, 2024
886c8a2
fixed the structure of env.ts, redefined .env schema and made some t…
adi790uu Jan 18, 2024
9247bae
Update authorized-changes-detection.yml
palisadoes Jan 19, 2024
989124b
Update authorized-changes-detection.yml
palisadoes Jan 19, 2024
96f84df
Update .gitignore
palisadoes Jan 20, 2024
18e004a
Update .gitignore
palisadoes Jan 20, 2024
46b58fc
Update authorized-changes-detection.yml
palisadoes Jan 20, 2024
c0bd69d
Conversion of Cloud API Demo bash Scripts to Python (#1704)
vasujain275 Jan 20, 2024
b2c4058
Update README.md
palisadoes Jan 21, 2024
1cf5a7c
Update pull-request.yml
palisadoes Jan 21, 2024
2879634
Update push.yml
palisadoes Jan 21, 2024
f503f90
Update push.yml
palisadoes Jan 21, 2024
3b83a9a
Merge : inpect.yml into push.yml (#1718)
aialok Jan 21, 2024
29181ea
Revert "Merge : inpect.yml into push.yml" (#1730)
palisadoes Jan 21, 2024
187d1ce
implemented cursor based pagination
AVtheking Jan 23, 2024
1d085a4
Merge branch 'develop' into feat/fetch_postbyUser
AVtheking Jan 23, 2024
7a0a8ba
Update README.md
AVtheking Jan 23, 2024
e9b4626
added test for missing lines
AVtheking Jan 23, 2024
ab3a26f
fix
AVtheking Jan 26, 2024
6119992
added validation
AVtheking Jan 26, 2024
540025b
implemented validation for connection argument
AVtheking Jan 26, 2024
17d7675
fixed failing test
AVtheking Jan 26, 2024
c4e9f16
fix
AVtheking Jan 28, 2024
8ee0517
fix failing test case
AVtheking Jan 28, 2024
2648dbd
Merge branch 'develop' into feat/fetch_postbyUser
AVtheking Jan 28, 2024
a0f6531
added limit arg
AVtheking Jan 29, 2024
244a5cc
fix code logic
AVtheking Jan 29, 2024
d1118ce
added documentation
AVtheking Jan 29, 2024
d1e9a44
fixed failing test
AVtheking Jan 29, 2024
219c43e
fix limit
AVtheking Feb 1, 2024
a0e07f1
added more test
AVtheking Feb 3, 2024
2a61aed
added more checks
AVtheking Feb 4, 2024
4b3f8df
fix failing test
AVtheking Feb 4, 2024
fa6445b
fix failing test
AVtheking Feb 4, 2024
13393b6
Merge branch 'develop' into feat/fetch_postbyUser
AVtheking Feb 16, 2024
0014fe1
fix failing test
AVtheking Feb 16, 2024
be93f99
fix failing test
AVtheking Feb 16, 2024
67f46d3
fix failing test
AVtheking Feb 16, 2024
71c311d
fix failing test
AVtheking Feb 16, 2024
a3d4d6e
fix
AVtheking Feb 16, 2024
4688366
fix
AVtheking Feb 16, 2024
10b23aa
Merge branch 'develop' into feat/fetch_postbyUser
AVtheking Feb 16, 2024
b492eb5
fix linting
AVtheking Feb 16, 2024
84c5d5d
merged develop
AVtheking Feb 16, 2024
55dbc99
fixed linting issue
AVtheking Feb 16, 2024
ab2442d
Merge branch 'develop' into feat/fetch_postbyUser
AVtheking Feb 19, 2024
1fe2e9c
fix
AVtheking Feb 19, 2024
d652c97
Merge branch 'develop' into feat/fetch_postbyUser
AVtheking Feb 19, 2024
0d94176
Merge branch 'develop' into feat/fetch_postbyUser
EshaanAgg Feb 19, 2024
af1e6ed
fixed failing test
AVtheking Feb 20, 2024
04b2189
added more test
AVtheking Feb 20, 2024
b4458b3
Merge branch 'develop' into feat/fetch_postbyUser
AVtheking Feb 21, 2024
eeae5a4
Merge branch 'develop' into feat/fetch_postbyUser
AVtheking Feb 23, 2024
c87e81d
merged
AVtheking Feb 24, 2024
2df2511
fix graphqlConnection
AVtheking Feb 24, 2024
090a4a1
Merge branch 'develop' into feat/fetch_postbyUser
AVtheking Feb 24, 2024
d291cee
added test
AVtheking Feb 24, 2024
aec5e97
made requested changes
AVtheking Feb 24, 2024
3dc8fe9
Merge branch 'develop' into feat/fetch_postbyUser
AVtheking Feb 25, 2024
07fc27a
Merge branch 'develop' into feat/fetch_postbyUser
AVtheking Feb 25, 2024
a397e92
fix
AVtheking Feb 26, 2024
3387253
fix
AVtheking Feb 26, 2024
ff7b5b9
fix failing test
AVtheking Feb 26, 2024
c9c6a2a
Merge branch 'develop' into feat/fetch_postbyUser
AVtheking Feb 26, 2024
8faa271
changed postByOrganization
AVtheking Feb 27, 2024
4de96a0
removed postByOrganization
AVtheking Feb 27, 2024
c369ebe
fix
AVtheking Feb 27, 2024
40cea51
Merge branch 'develop' into feat/fetch_postbyUser
AVtheking Feb 27, 2024
fbbe506
Merge branch 'develop' into feat/fetch_postbyUser
AVtheking Feb 27, 2024
0207e14
fix formating issue
AVtheking Feb 27, 2024
8f8de3d
Merge branch 'develop' into feat/fetch_postbyUser
AVtheking Feb 27, 2024
3bf96cf
made changes
AVtheking Feb 27, 2024
497e14d
fix error
AVtheking Feb 28, 2024
97d1f1f
Merge branch 'develop' into fix/fetch_postbyUser
AVtheking Feb 28, 2024
97e1aff
fix formatting issue
AVtheking Feb 28, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -1223,7 +1223,7 @@ input PostWhereInput {

type PostsConnection {
edges: [PostEdge!]!
pageInfo: ConnectionPageInfo!
pageInfo: DefaultConnectionPageInfo!
totalCount: PositiveInt
}

Expand Down
3 changes: 2 additions & 1 deletion src/resolvers/Organization/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import { funds } from "./funds";
import { image } from "./image";
import { members } from "./members";
import { membershipRequests } from "./membershipRequests";

import { pinnedPosts } from "./pinnedPosts";
import { posts } from "./posts";

import { advertisements } from "./advertisements";

Expand All @@ -27,5 +27,6 @@ export const Organization: OrganizationResolvers = {
membershipRequests,
pinnedPosts,
funds,
posts,
// userTags,
};
2 changes: 1 addition & 1 deletion src/typeDefs/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,7 @@ export const types = gql`
}
type PostsConnection {
edges: [PostEdge!]!
pageInfo: ConnectionPageInfo!
pageInfo: DefaultConnectionPageInfo!
totalCount: PositiveInt
}
type PostEdge {
Expand Down
4 changes: 2 additions & 2 deletions src/types/generatedGraphQLTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1924,7 +1924,7 @@ export type PostWhereInput = {
export type PostsConnection = {
__typename?: 'PostsConnection';
edges: Array<PostEdge>;
pageInfo: ConnectionPageInfo;
pageInfo: DefaultConnectionPageInfo;
totalCount?: Maybe<Scalars['PositiveInt']['output']>;
};

Expand Down Expand Up @@ -3727,7 +3727,7 @@ export type PostEdgeResolvers<ContextType = any, ParentType extends ResolversPar

export type PostsConnectionResolvers<ContextType = any, ParentType extends ResolversParentTypes['PostsConnection'] = ResolversParentTypes['PostsConnection']> = {
edges?: Resolver<Array<ResolversTypes['PostEdge']>, ParentType, ContextType>;
pageInfo?: Resolver<ResolversTypes['ConnectionPageInfo'], ParentType, ContextType>;
pageInfo?: Resolver<ResolversTypes['DefaultConnectionPageInfo'], ParentType, ContextType>;
totalCount?: Resolver<Maybe<ResolversTypes['PositiveInt']>, ParentType, ContextType>;
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
};
Expand Down
2 changes: 1 addition & 1 deletion tests/resolvers/Organization/posts.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ describe("resolvers -> Organization -> post", () => {
);

const totalCount = await Post.find({
creatorId: testUser?._id,
organization: testOrganization?._id,
}).countDocuments();

expect((connection?.edges[0] as unknown as PostEdge).cursor).toEqual(
Expand Down
Loading