Skip to content

Commit

Permalink
Add memory util fields to schema (#1730)
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeljguarino authored Jan 7, 2025
1 parent f4d776e commit feef111
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 10 deletions.
1 change: 1 addition & 0 deletions assets/src/generated/graphql.ts
Original file line number Diff line number Diff line change
Expand Up @@ -818,6 +818,7 @@ export type Chat = {
content: Scalars['String']['output'];
id: Scalars['ID']['output'];
insertedAt?: Maybe<Scalars['DateTime']['output']>;
pullRequest?: Maybe<PullRequest>;
role: AiRole;
seq: Scalars['Int']['output'];
thread?: Maybe<ChatThread>;
Expand Down
19 changes: 10 additions & 9 deletions go/client/models_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion lib/console/graphql/ai.ex
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ defmodule Console.GraphQl.AI do
field :seq, non_null(:integer)
field :attributes, :chat_type_attributes

field :thread, :chat_thread, resolve: dataloader(AI)
field :pull_request, :pull_request, resolve: dataloader(Deployments)
field :thread, :chat_thread, resolve: dataloader(AI)

timestamps()
end
Expand Down
1 change: 1 addition & 0 deletions schema/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -6566,6 +6566,7 @@ type Chat {
content: String!
seq: Int!
attributes: ChatTypeAttributes
pullRequest: PullRequest
thread: ChatThread
insertedAt: DateTime
updatedAt: DateTime
Expand Down

0 comments on commit feef111

Please sign in to comment.