WatchlistMutation
type WatchlistMutation {
create(
name: String!
companyIds: [String!]!
shared: Boolean!
userId: Int
): Watchlist!
patch(
watchlist: UpdateWatchlistInput!
): Watchlist!
addCompanies(
watchlist: UpdateWatchlistCompaniesInput!
): [String!]!
removeCompanies(
watchlist: UpdateWatchlistCompaniesInput!
): [String!]!
delete(
id: Int!
): WatchlistMutationResult!
}
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
WatchlistMutation.create.companyIds
● [String!]!
non-null scalar
List of company Ids. The company id could be AS ID, ticker code or ISIN.
WatchlistMutation.create.shared
● Boolean!
non-null scalar
share watchlist with other users
WatchlistMutation.create.userId
● Int
scalar
Owner of the watchlist, specify if you want to create this watchlist for someone else. Only available for watchlist admins.
WatchlistMutation.patch
● Watchlist!
non-null object
Update the watchlist partially by watchlist ID @exposed
WatchlistMutation.patch.watchlist
●UpdateWatchlistInput!
non-null inputWatchlist Input
WatchlistMutation.addCompanies
● [String!]!
non-null scalar
Add new companies to watchlist @exposed
WatchlistMutation.addCompanies.watchlist
●UpdateWatchlistCompaniesInput!
non-null inputWatchlist id and list of company ids
WatchlistMutation.removeCompanies
● [String!]!
non-null scalar
Remove companies from watchlist @exposed
WatchlistMutation.removeCompanies.watchlist
●UpdateWatchlistCompaniesInput!
non-null inputWatchlist id and list of company ids
WatchlistMutation.delete
● WatchlistMutationResult!
non-null object
Delete watchlist with id @exposed
WatchlistMutation.delete.id
●Int!
non-null scalarWatchlist ID
Returned by
watchlist
mutation