Skip to content

Commit

Permalink
Merge pull request #1132 from serlo/remove-edges1
Browse files Browse the repository at this point in the history
refactor!: Remove some edges fields
  • Loading branch information
hugotiburtino authored Nov 23, 2023
2 parents 50a3186 + 1e5a8ec commit acc413b
Show file tree
Hide file tree
Showing 8 changed files with 0 additions and 180 deletions.
6 changes: 0 additions & 6 deletions packages/server/src/schema/thread/types.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -68,17 +68,11 @@ type ThreadsCursor {
}

type CommentConnection {
edges: [CommentEdge!]!
nodes: [Comment!]!
totalCount: Int!
pageInfo: PageInfo!
}

type CommentEdge {
cursor: String!
node: Comment!
}

extend type Query {
thread: ThreadQuery!
}
Expand Down
6 changes: 0 additions & 6 deletions packages/server/src/schema/uuid/abstract-uuid/types.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,11 @@ interface AbstractUuid {
}

type AbstractUuidConnection {
edges: [AbstractUuidCursor!]!
nodes: [AbstractUuid!]!
totalCount: Int!
pageInfo: PageInfo!
}

type AbstractUuidCursor {
cursor: String!
node: AbstractUuid!
}

type Query {
uuid(alias: AliasInput, id: Int): AbstractUuid
}
Expand Down
6 changes: 0 additions & 6 deletions packages/server/src/schema/uuid/applet/types.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,7 @@ type AppletRevision implements AbstractUuid & AbstractRevision & AbstractEntityR
}

type AppletRevisionConnection {
edges: [AppletRevisionCursor!]!
nodes: [AppletRevision!]!
totalCount: Int!
pageInfo: PageInfo!
}

type AppletRevisionCursor {
cursor: String!
node: AppletRevision!
}
6 changes: 0 additions & 6 deletions packages/server/src/schema/uuid/article/types.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,7 @@ type ArticleRevision implements AbstractUuid & AbstractRevision & AbstractEntity
}

type ArticleRevisionConnection {
edges: [ArticleRevisionCursor!]!
nodes: [ArticleRevision!]!
totalCount: Int!
pageInfo: PageInfo!
}

type ArticleRevisionCursor {
cursor: String!
node: ArticleRevision!
}
6 changes: 0 additions & 6 deletions packages/server/src/schema/uuid/course-page/types.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,7 @@ type CoursePageRevision implements AbstractUuid & AbstractRevision & AbstractEnt
}

type CoursePageRevisionConnection {
edges: [CoursePageRevisionCursor!]!
nodes: [CoursePageRevision!]!
totalCount: Int!
pageInfo: PageInfo!
}

type CoursePageRevisionCursor {
cursor: String!
node: CoursePageRevision!
}
6 changes: 0 additions & 6 deletions packages/server/src/schema/uuid/course/types.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,7 @@ type CourseRevision implements AbstractUuid & AbstractRevision & AbstractEntityR
}

type CourseRevisionConnection {
edges: [CourseRevisionCursor!]!
nodes: [CourseRevision!]!
totalCount: Int!
pageInfo: PageInfo!
}

type CourseRevisionCursor {
cursor: String!
node: CourseRevision!
}
102 changes: 0 additions & 102 deletions packages/server/src/types.ts

Large diffs are not rendered by default.

42 changes: 0 additions & 42 deletions packages/types/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -253,18 +253,11 @@ export type AbstractUuidEventsArgs = {

export type AbstractUuidConnection = {
__typename?: 'AbstractUuidConnection';
edges: Array<AbstractUuidCursor>;
nodes: Array<AbstractUuid>;
pageInfo: PageInfo;
totalCount: Scalars['Int']['output'];
};

export type AbstractUuidCursor = {
__typename?: 'AbstractUuidCursor';
cursor: Scalars['String']['output'];
node: AbstractUuid;
};

export type AddRevisionResponse = {
__typename?: 'AddRevisionResponse';
query: Query;
Expand Down Expand Up @@ -389,18 +382,11 @@ export type AppletRevisionThreadsArgs = {

export type AppletRevisionConnection = {
__typename?: 'AppletRevisionConnection';
edges: Array<AppletRevisionCursor>;
nodes: Array<AppletRevision>;
pageInfo: PageInfo;
totalCount: Scalars['Int']['output'];
};

export type AppletRevisionCursor = {
__typename?: 'AppletRevisionCursor';
cursor: Scalars['String']['output'];
node: AppletRevision;
};

export type Article = AbstractEntity & AbstractRepository & AbstractTaxonomyTermChild & AbstractUuid & InstanceAware & ThreadAware & {
__typename?: 'Article';
alias: Scalars['String']['output'];
Expand Down Expand Up @@ -494,18 +480,11 @@ export type ArticleRevisionThreadsArgs = {

export type ArticleRevisionConnection = {
__typename?: 'ArticleRevisionConnection';
edges: Array<ArticleRevisionCursor>;
nodes: Array<ArticleRevision>;
pageInfo: PageInfo;
totalCount: Scalars['Int']['output'];
};

export type ArticleRevisionCursor = {
__typename?: 'ArticleRevisionCursor';
cursor: Scalars['String']['output'];
node: ArticleRevision;
};

export type CacheRemoveInput = {
keys: Array<Scalars['String']['input']>;
};
Expand Down Expand Up @@ -585,18 +564,11 @@ export type CommentEventsArgs = {

export type CommentConnection = {
__typename?: 'CommentConnection';
edges: Array<CommentEdge>;
nodes: Array<Comment>;
pageInfo: PageInfo;
totalCount: Scalars['Int']['output'];
};

export type CommentEdge = {
__typename?: 'CommentEdge';
cursor: Scalars['String']['output'];
node: Comment;
};

export enum CommentStatus {
Done = 'done',
NoStatus = 'noStatus',
Expand Down Expand Up @@ -747,18 +719,11 @@ export type CoursePageRevisionThreadsArgs = {

export type CoursePageRevisionConnection = {
__typename?: 'CoursePageRevisionConnection';
edges: Array<CoursePageRevisionCursor>;
nodes: Array<CoursePageRevision>;
pageInfo: PageInfo;
totalCount: Scalars['Int']['output'];
};

export type CoursePageRevisionCursor = {
__typename?: 'CoursePageRevisionCursor';
cursor: Scalars['String']['output'];
node: CoursePageRevision;
};

export type CourseRevision = AbstractEntityRevision & AbstractRevision & AbstractUuid & ThreadAware & {
__typename?: 'CourseRevision';
alias: Scalars['String']['output'];
Expand Down Expand Up @@ -797,18 +762,11 @@ export type CourseRevisionThreadsArgs = {

export type CourseRevisionConnection = {
__typename?: 'CourseRevisionConnection';
edges: Array<CourseRevisionCursor>;
nodes: Array<CourseRevision>;
pageInfo: PageInfo;
totalCount: Scalars['Int']['output'];
};

export type CourseRevisionCursor = {
__typename?: 'CourseRevisionCursor';
cursor: Scalars['String']['output'];
node: CourseRevision;
};

export type CreateCommentNotificationEvent = AbstractNotificationEvent & InstanceAware & {
__typename?: 'CreateCommentNotificationEvent';
actor: User;
Expand Down

0 comments on commit acc413b

Please sign in to comment.