code: func (res *Resource) ToPrimaryQueryParamsFromMetaValue(metaValues *MetaValues, context *qor.Context) (string, []interface{}) {
  	var (
  		sqls          []string
  		primaryValues []interface{}
  		scope         = context.GetDB().NewScope(res.Value)
  	)
  
  	if metaValues != nil {
  		for _, field := range res.PrimaryFields {
  			if metaField := metaValues.Get(field.Name); metaField != nil {
  				sqls = append(sqls, fmt.Sprintf("%v.%v = ?", scope.QuotedTableName(), scope.Quote(field.DBName)))
  				primaryValues = append(primaryValues, utils.ToString(metaField.Value))
  			}
  		}
  	}
  
  	return strings.Join(sqls, " AND "), primaryValues
  }
docs: // ToPrimaryQueryParamsFromMetaValue generate query params based on MetaValues