[SERVER-11306] listCommands should provide commands-return-cursor information Created: 22/Oct/13  Updated: 06/Dec/22

Status: Backlog
Project: Core Server
Component/s: Usability
Affects Version/s: 2.5.3
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: Hannes Magnusson Assignee: Backlog - Query Optimization
Resolution: Unresolved Votes: 0
Labels: 26qa
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Gantt Dependency
Assigned Teams:
Query Optimization
Participants:

 Description   

The listCommands command lists all available commands, and for "special things" it returns a dedicate field for it.
These special things include adminOnly and slaveOk.

A command returning a cursor should be considered as a special behaviour and be marked so.

		"aggregate" : {
			"help" : "{ pipeline : [ { <data-pipe-op>: {...}}, ... ] }",
			"lockType" : 0,
			"slaveOk" : false,
			"adminOnly" : false,
			"slaveOverrideOk" : true
		},

I'd like to have a "top level field" there called cursor: true/false to clearly differentiate this command from others as it has very specific capabilities.



 Comments   
Comment by Daniel Pasette (Inactive) [ 23/Oct/13 ]

This might be useful if more than one command returned a cursor.

Generated at Thu Feb 08 03:25:26 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.