You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							25 lines
						
					
					
						
							504 B
						
					
					
				
			
		
		
	
	
							25 lines
						
					
					
						
							504 B
						
					
					
				From all keys in `params` it selects only those passed in arguments.
 | 
						|
 | 
						|
### Example
 | 
						|
 | 
						|
```javascript
 | 
						|
 | 
						|
import flat from '@adminjs'
 | 
						|
 | 
						|
const params = {
 | 
						|
  name: 'John',
 | 
						|
  'education.school.name': 'Harvard',
 | 
						|
  'education.school.id': 123,
 | 
						|
}
 | 
						|
 | 
						|
flat.selectParams(params, 'education.school')
 | 
						|
// results to {
 | 
						|
//   'education.school.name': 'Harvard',
 | 
						|
//   'education.school.id': 123,
 | 
						|
// }
 | 
						|
 | 
						|
flat.selectParams(params, 'education.school.id', 'name')
 | 
						|
// results to {
 | 
						|
//   'name': 'John',
 | 
						|
//   'education.school.id': 123,
 | 
						|
// } |