WatchlistMutation
type WatchlistMutation {
create(
name: String!
companyIds: [String!]!
shared: Boolean!
userId: Int
isFavourite: Boolean
): Watchlist!
patch(
watchlist: UpdateWatchlistInput!
): Watchlist!
addCompanies(
watchlist: UpdateWatchlistCompaniesInput!
): [String!]!
removeCompanies(
watchlist: UpdateWatchlistCompaniesInput!
): [String!]!
delete(
id: Int!
): WatchlistMutationResult!
deleteWatchlists(
ids: [Int!]!
): [Int!]
}
Fields
WatchlistMutation.create
● Watchlist!
non-null object
Create a watchlist with the given name and a list of AS ID. @exposed
WatchlistMutation.create.name
●String!
non-null scalarName of the watchlist